孔家祥和尊钧瓷价钱:sql日期之间语句怎么写

来源:百度文库 编辑:高考问答 时间:2024/07/07 12:03:22
rt
select * from 表 where 日期 between #日期1# and #日期2#
好像不行。

在查询分析器里

用单引号:
select * from 表 where 日期 between '日期1' and '日期2'

select * from 表 where 日期 between #日期1# and #日期2#