in reply to Parsing a boolean search string for SQL query
And the fact that i chose to use LIKE instead of = says something as well ... your interface is going to get hairy with the approach you have chosen.SELECT * FROM movie WHERE title LIKE 'A%' AND title NOT LIKE 'Ab%'
Instead of parsing some user-given string, you should restrict their interface to lists and check boxes/radio buttons. Then you can create your SQL statement with something like SQL::Abstract.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing a boolean search string for SQL query
by tachyon (Chancellor) on Sep 01, 2003 at 17:24 UTC | |
by jeffa (Bishop) on Sep 01, 2003 at 17:50 UTC | |
by tachyon (Chancellor) on Sep 01, 2003 at 17:58 UTC |