这句SQL该怎么写?请指教! select * from table where year(indate)=2002 and month(indate)=7 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 iYear = 2002iMonth = 7SQLText = "Select * From 表 Where date between #" & Str(iYear) & "-"& Str(iMonth) & "-1# And " & Str(iYear) & "-" & Str(iMonth+1) & "-1#-1" select * from tablename where year(indate)=2002 and month(indate)=7 可以使用组合字符串:date1=变量(年) & "-" & 变量(月)& "-" & "1",date2=变量(年) & "-" & 变量(月)& "-" & "31",SQL语句如下:Select * From 表 Where indate Between date1 And date2 关于access数据库字段比较时空值的问题 新手求助! 请问VB的标准图像控件能支持PNG格式吗? 用winsock UDP 一次最多能发多少的数据? 把VB6运行库拷贝到另一台电脑上,不安装,只是复制,与把VB6运行库拷贝到另一台电脑,安装,两者有何区别? 求vs.net下载地址(高分麻烦你) 关于ORACLE 我想作一个这样的程序,请大家进来看看 如图 感激不尽..........谢谢了 如何用VB拦截windows中所有的键盘输入(好难的...) 下载了activeskin控件,不知道怎么调用它? 问题。。。》????
iMonth = 7SQLText = "Select * From 表 Where date between #" & Str(iYear) & "-"
& Str(iMonth) & "-1# And " & Str(iYear) & "-" & Str(iMonth+1) & "-1#-1"
SQL语句如下:
Select * From 表 Where indate Between date1 And date2