On 19 Jan 2005 at 8:30, Mark Mchugh wrote:
Hi,
I am getting a syntax error using the following sql
from within a visual basic project,
sqlstr = "update policies set dirs = 'z:\' where id =
The slash character is used to 'escape' other special characters.
For example if you want to insert a single quote into a string field you would
use:
INSERT into table_name ( string_field) VALUES ( 'Mr O\'rielly');
See:
http://dev.mysql.com/doc/mysql/en/String_syntax.html
for more information on escape characters.
Too correct the above statement use:
sqlstr = "update policies set dirs = 'z:\\' where id =
Regards
Ian