意外伤害的预防手机卡:asp读取数据的问题,自己笨。。不会。。

来源:百度文库 编辑:神马品牌网 时间:2024/05/06 02:29:39
比如:有5个栏目ID为1-5,只需要读取ID为1-3内的所有文章。。该怎么写?

select * from 表名 where id>=1 and id<=3;

SQL读取时分

select * from tabName where id in (1,2,3)

select * from tabName where id in (1,2,3)
回答者:bg1jt 这种方法才对