I am trying to implement a standard browse feature on a web page where the user can select a to z or miscellaneous. All records with where the "title" field begins with that letter are then displayed. My problem is that I have noticed that when trying to display the "Miscellaneous" records, as in, the ones that do not begin with a letter, a record that has the "title" field beginning with a single quote ( ' ) is not displayed.
I am using a simple sql statement as follows
Other characters and numbers etc work fine, just not the single quote. Also, if I search for it explicitly it works fine. eg
Any help on this would be gratefully received.
I am using a simple sql statement as follows
Code:
SELECT * FROM test WHERE title NOT BETWEEN 'A' AND 'Z'
Other characters and numbers etc work fine, just not the single quote. Also, if I search for it explicitly it works fine. eg
Code:
SELECT * FROM test WHERE title = '''test'
Any help on this would be gratefully received.