📄 subject_62056.htm
字号:
<p>
序号:62056 发表者:whoami 发表日期:2003-11-24 14:36:21
<br>主题:菜鸟的select语句问题?
<br>内容:例如table AAA有2个字段 date 和 time。都是字符型的。<BR>现在有三条记录<BR> date time<BR>20031122 11:11<BR>20031122 11:22<BR>20031123 11:11<BR><BR>我想取出时间大于20031122 11:20的记录,也就是上面的后两条,<BR>请问这个select该怎么写?主要就是这个where条件?<BR>谢谢!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:dstwwx 回复日期:2003-11-24 14:45:40
<br>内容:对不住,俺刚才的是错误的<BR><BR>下面是笨方法:<BR>select * from AAA where ([date]='20031122' and [time]>'11:20') or ([date]>'20031122')<BR><BR>或者<BR>select * from AAA where ([date]+' '+[time])>'20031122 11:20'<BR><BR><BR><BR>2003-11-24 15:01:39
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -