Select data in mysql where delimiters are two data alphanumeric data fields -
There are two columns in my table structure, for an initial limit and for the completion of second class. Both are alphanumeric
such as: SELECT form table where range1 & lt; = 'User_input' and range2> = 'user_input';
I have to search the user input as a line, according to an alphanumeric string. But range 1, range 2 and user_input are alphanumeric values (barcodes).
There are alphanumeric numbers generated by some PHP functions in category 1 and range 2 series.
For category 1 156WB562789 and for class 2 156WB562880
change the limit in the previous 3 characters (which are the numbers) in Border 1 and Border 2, they are all the same.
If your barcode is always the same structure ( [0- 9] {3} [AZ ] {2} is [0-9] {5}
), you can divide it into 3 cols ( part1
part2
part3 < / Code>) and then split the user's string and make a query that will work with those three columns.
This is not the optimal solution but I do not have any other right now.
Comments
Post a Comment