That SQL statement provided should work just fine without any escape
sequences (at least as far as MySQL is concerned).  The semicolons (;)
should be treated as part of a literal string, and therefore, inserted
into the image_data table.

Perhaps you're running this script from some utility or some program that
isn't properly handling the script.

I just ran the following using the urSQL Utility (which uses MyODBC) and
it worked fine:

drop table if exists image_data;
create table image_data(title varchar(64));
insert into image_data (title) 
 values ("“Blue Clearwing” (Dulcedo polita)");
select * from image_data;

Try running the script directly in MySQL.


On Thu, 10 May 2001, Dave Emerson wrote:

> I'm doing an insert via a SQL script:
> 
> insert into image_data (title)
>     values ("“Blue Clearwing” (Dulcedo polita)");
> 
> The error returned is:
> Error: (-1) You have an error in your SQL syntax near '"$#147' at line 1
> State:42000,Native:1064,Origin:[TCX][MyODBC]



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to