jxawgyl 发表于 2008-6-8 10:27

查错(这句查询语句应如何写)

这句话是:select * from AdviceListView  where  roomcode=2000
    and sendopecode>0
     and exectime>''
     and exectime<''   
     and patname like '%'
     and medname like '%'
     and offcode =''
     order by intime desc
这是我在VB中按键用的语句,其中只有当OFFCODE为空时,查询不到数据,为什么呢?请各位帮我看一下,

卜酷塔 发表于 2008-6-14 13:47

and exectime>''
     and exectime<''
是不是这个地方的问题啊?
你吧这两句去掉试试

页: [1]

编程论坛