On Fri, 17 Aug 2001, Cal Evans wrote:

> Select * from product where title = 'This title has a \' in it.';
>
> This query does not work.  Can anyone tell me how to build a query that will
> return that title?

Are you sure you're not overlooking something? I just tried the following
commands and had no problems with the single quote...

mysql> create temporary table product (title varchar(80));
Query OK, 0 rows affected (0.01 sec)

mysql> insert into product values ('This title has a \' in it.');
Query OK, 1 row affected (0.00 sec)

mysql> select * from product;
+---------------------------+
| title                     |
+---------------------------+
| This title has a ' in it. |
+---------------------------+
1 row in set (0.00 sec)

smysql> select * from product where title='This title has a \' in it.';
+---------------------------+
| title                     |
+---------------------------+
| This title has a ' in it. |
+---------------------------+
1 row in set (0.00 sec)


---------------------------------------------------------------------
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