发信人: zhengjin2000(郑津)
整理人: teleme(2001-10-06 08:44:57), 站内信件
|
Access数据库用select * from table where date>#2001-01-01#
SQL Server数据库用select * from table where date>convert(datetime,"2001-01-01")
paradox数据库用select * from table where date>cast("2001/01/01" as date)
paradox数据库的日期格式只能用yyyy/mm/dd
【 在 dan96js 的大作中提到:】
:我表中有一个字段date为日期型,如何在SQL中select出日期大于01-1-1记录出来,我用select * from table where date>01-1-1
: select * from table where date>'01-1-1'
: select * from table where date>"01-1-1"
:都不行,应如操作。
:
:
:......
----
▇▇▇▇▇▇▇▇
▇ ▇
▇ 郑 永 津 ▇
▇ 发贴专用章 ▇
▇ ▇
▇▇▇▇▇▇▇▇
|
|