Removing characters out of a field

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Removing characters out of a field

    I have a search screen and the user will be entering an isbn number to search.
    Some users will enter dashes and others will not. My database field has dashes.
    What I would like to see happen is that the data can be found whether a user
    enters dashes or not.

    julball Guest

  2. Similar Questions and Discussions

    1. Removing non-printing characters ...
      Folks ... I have a pipe-delimited ASCII text file with a lot of different non-printing characters. Rather than try and figure out all the...
    2. Removing Commas From a field
      Hello I have 2 fields that are name the same in different tables. One is called : ProductGrade.GradeID and the other is Parts.GradeID. now my...
    3. Removing paragraph mark in a field
      Hi all I need some help please I am trying to remove the pragraph marks ^p in a text field called - advert.DescriptionDetails when...
    4. Removing special characters from a string
      What's the best way to remove special characters from a string leaving just alphanumeric characters and spaces ???
    5. Removing characters once a series stops
      I have strings that I need to get the first set of numbers from. IE: ABC123DEF ABC11JH8KLZ I need to get 123 and 11 from the from the above...
  3. #2

    Default Re: Removing characters out of a field

    That is going to be hard to do, since the dashes may not be in the same
    position in any given ISBN number. What about adding a second ISBN number
    without the dashes in your database that is just used for searching? When the
    user enters a number, just remove any dashes and compare with the ISBN search
    version.

    You could use LIKE for partial numbers.

    WHERE ISBN_Searchable LIKE '%#Replace(FORM.ISBN,"-","","all")#%'


    eastinq Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139