<pre><font size=3>
日期格式默认为mm/dd/yy,所以要输入必须采用:
select * from salary_history where change_date=&quot;09/08/93&quot;
select * from salary_history where change_date&gt;&quot;09/08/93&quot;
此格式可在控制面版中的BDE Administrator中(或是开始菜单)的
config=&gt;system=&gt;date中设定
其中FOURDIGITYEAR 是否以四位表示年份(默认为两位)
LEADINGZEROD 是否表示用两位表示日期,不足两位补0 (默认为false:一位)
LEADINGZEROM 是否表示用两位表示月份,不足两位补0 (默认为false:一位)
mode: 0表示mdy(即月日年),1表示DMY,2表示YMD
SEPARATOR:表示分隔符默认为/
YEARBIASED:是否在两位表示年份加1900,如果为TRUE时96表示为1996,否则表示为0096年
记住一定要加单引号或双引号将日期引上
具体说明见下:
Parameter Description
SEPARATOR Character used to separate the month, day, and year components of a date value; such as, the "/" in "12/31/96." The default is the character normally used in the country selected in the Windows Control Panel when any BDE application is installed.
MODE Controls the order of the month, day, and year components and can be 0 (for MDY), 1 (for DMY), or 2 (YMD). The default is the order normally used in the country selected in the Windows Control Panel when any BDE application is installed.
FOURDIGITYEAR Specifies the number of digits for the year value (four or two). If TRUE, years are expressed in four digits (such as, 1996). If FALSE, the default, years have two digits (96).
YEARBIASED Tells the BDE application whether or not it should add 1900 to years entered as two digits. For example, if TRUE and you enter "7/21/96," the BDE application interprets your value as "7/21/1996", otherwise, the date is interpreted as entered (in this case, "7/21/0096"). Default: TRUE
LEADINGZEROM Specifies whether or not single digit month values have a leading zero. For example, if you enter "1/1/80" and this is set to TRUE, the BDE application interprets the date as "01/1/80." If FALSE, the value is "1/1/80." Default: FALSE
LEADINGZEROD Controls whether or not single digit day values have a leading zero. For example, if you enter "1/1/80" and this is set to TRUE, the BDE application interprets the value as "1/01/80." If FALSE, your date is "1/1/80." Default: FALSE
</font></pre>