日期:2014-05-17  浏览次数:20923 次

一个关于数据库读取显示的问题
才学ASP,看了这个问题高手不要笑

我现在想把数据库中ZG字段里符合1和0条件的数据显示出来?
mSql= "select   *   from   dbbox   where   zg=0   or   1   order   by   time   desc "
发现没用,所以现在只能这样去写:
mSql= "select   *   from   dbbox   where   zg <2   order   by   time   desc "
请问大家能不能用and去写?怎么写?
呵呵,我是才学ASP的,比较菜,望指教
谢谢


------解决方案--------------------
mSql= "select * from dbbox where zg=0 or zg=1 order by time desc "