SELECT book_id FROM pd WHERE isbn='123456789' and book_name='"中国"与"PHP粉丝网"';
这种情况下,book_name对应的字符串是没有问题的,sql语句没有语法问题,但是看下面一条语句:sql中,insert into yourTable(f1,f2) values(100,'abc') SELECT book_id FROM pd WHERE isbn='123456789' and book_name='LET'S GO!PHP粉丝网';
报异常:You have an error in your SQL syntax;--phpfensi.com