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-30 23:49
2006-12-31 01:46
[此贴子已经被作者于2006-12-31 2:43:05编辑过]
2006-12-31 02:42
2006-12-31 10:33
因为表里的这一列还有其他的值,我只想要这几个值
前辈们 是不是也可以这样写?
select * from products where type_id in ('"&"what is new"&"','"&"fish"&"','"&"lures"&"') order by class_id
是不是和上面的等同?

2006-12-31 10:37
2006-12-31 11:56
2006-12-31 13:27
2006-12-31 14:22

2006-12-31 16:17

2006-12-31 16:20