SQL语句可以这么写么?
select * from products where type_id='"&"what is new"&"' or type_id='"&"fish"&"' or type_id='"&"lures"&"' order by class_id这样写可以么?有没有违反sql语句的规范?
[此贴子已经被作者于2006-12-31 2:43:05编辑过]
因为表里的这一列还有其他的值,我只想要这几个值
前辈们 是不是也可以这样写?
select * from products where type_id in ('"&"what is new"&"','"&"fish"&"','"&"lures"&"') order by class_id
是不是和上面的等同?