D
djw
Unregistered / Unconfirmed
GUEST, unregistred user!
关于一个sql查询语句的问题:
要求查出mae表单中name为“dds”、sex为“man”、age为“25”的记录,并按time进行排序
语句如下:
SQL = "Select * From mae where name like '%dds%' and sex like '%man%' and age like '%25%' Order By time Desc"
结果根本无法执行,如果减少一项可正确执行,如下:
SQL = "Select * From mae where name like '%dds%' and sex like '%man%' Order By time Desc"
请教各位高手,怎么解决此问题,请给出正确的sql语句。
要求查出mae表单中name为“dds”、sex为“man”、age为“25”的记录,并按time进行排序
语句如下:
SQL = "Select * From mae where name like '%dds%' and sex like '%man%' and age like '%25%' Order By time Desc"
结果根本无法执行,如果减少一项可正确执行,如下:
SQL = "Select * From mae where name like '%dds%' and sex like '%man%' Order By time Desc"
请教各位高手,怎么解决此问题,请给出正确的sql语句。