我的SQL里面是这么写的select time1 from table where date1=#"+DBLookkupListBox1->SelectedItem+"# order by time1"
DBLookkupListBox1我设置成了一个显示日期的表格,time1和date1都是数据库里的字段名称。我现在还想选择一段时间。
between#"+DBLookkupListBox1->SelectedItem+"# and #"+DBLookkupListBox2->SelectedItem +"#"
怎么把这两个融合成一条呢?
时间类型最好不要用between,两个条件是作为and关系还是or关系。
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!