Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我执行以下操作:
SELECT url FROM mytable WHERE 1
结果:网址:'http://www.ciao.es/Epson_Stylus_S22__2007613'
现在一切都很好......但是当我这样做时:
SELECT * FROM mytable WHERE url = 'http://www.ciao.es/Epson_Stylus_S22__2007613'
我什么都得不到!!!
我尝试使用 LIKE,更改引号等...我做错了什么?
您的表字段 url 中有“”。因此,如果您正在查询,您将得到如下输出:“http://www.ciao.es/Epson_Stylus_S22__2007613”(单引号)所以这样写:
SELECT * FROM mytable WHERE url = "'http://www.ciao.es/Epson_Stylus_S22__2007613'"
或从表中删除单引号。