ok, ive searched around, and tried a few things.... in java the character is the escape character so i tried that.... didnt work... i tried / but that also didnt work...
another website said @ was an escape character so i tried @' but it didnt work....so how does one go about inserting a record such as 'I'm frustrated' without it thinking that i gave 'I' only and the rest being treated as illegal syntax?
Mephist
May 20 2003, 10:45 PM
doesnt anyone know how?? i looked around and i think i can use the following ESCAPE format for SELECT statements:
SELECT * FROM table_name WHERE arbitrary_field = 'arbitrary field@'s contents' ESCAPE '@'
however it doesnt seem to work for INSERT statements... can anyone help me? please? :P i wonder if it has anything to do with the fact that im working on Microsoft Access as my database for this.
AceHigh
May 20 2003, 11:04 PM
Will get back with you as I'm going to bed right now, but will have an answer.
ldonyo
May 23 2003, 08:23 PM
Have you tried using the double quote ( " ) to delimit your string?
AceHigh
May 23 2003, 08:40 PM
use a backslash, i.e SELECT * FROM dept WHERE dname LIKE '%_%' ESCAPE '';
The ESCAPE option identifies the backslash () as the escape character. In the pattern, the escape character precedes the underscore(_).
Mephist
May 23 2003, 10:17 PM
hey ace, thanks for that, however it doesnt seemt to work for INSERT statements... either that or MS Access just bites..
AceHigh
May 23 2003, 10:58 PM
Access bites!
Mephist
May 23 2003, 11:14 PM
so ESCAPE works in INSERT statements on MySQL, Oracle, SQL Server etc?