当我查询:SQL选择列从表其中name =“2的声明,更字”
select * from table_name where name='jim'
一切都很好。
但是,当我查询:
select * from table where ='a statement with 2 and more word'
例如下面的查询:
select columns from table where ='jim carrey'
查询只考虑 '吉姆'。换句话说,查询只考虑第一个单词,并不考虑后面的任何内容。
第二个和第三个查询没有意义 - 你的意思是'name = ...'? – Hogan
你如何说*查询只是考虑'吉姆'*? –
我删除了不兼容的数据库标签。为了清楚起见,请提供样本数据和所需结果。 –