
datatime BETWEEN value1 AND value2 order by datatime desc
其中between and取出两个时间段之间的数据,order by排序,desc倒序(即先后)
select substring(字段,charindex(',',字段)+1,charindex(',',字段,charindex(',',字段)+1)-charindex(',',字段)-1) from 表str_sql := Format('select * from OrderBill where BillNo between %s and %s', [QuotedStr(edit1.Text), QuotedStr(edit2.Text)])欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)