where 申报日期后面怎么写
我想查询如2004年8月及2004年整年的记录
我想查询如2004年8月及2004年整年的记录
解决方案 »
- The SOC Account does not have access to the resource.
- cognos 报表材料?
- 如何在ASP代码中将数字转为代码?
- 网站右下角聊天
- 还原.net网站
- 紧急求救!Global.asax里的事件不执行!Application_BeginRequest无效
- WORD 文件打开的问题
- 下午装好adsl,高兴,散分
- asp.net 中实现,查询列表行可以展开
- SSH2开发,老是报空指针,什么鬼,求大神给看看,前台数据封装正常,也能获取到,就是报空指针!!
- 我在把代码插入access数据库的时候出错(在线等)
- 新手问题,请帮忙:Connection 属性尚未初始化
select * from table where convert(char(7),data,120)='2004-08'
select * from table where datename(yyyy,data)='2004'
如果是datetime型
select * from table where year(字段名)='2004' and month(字段名)='8'
select * from table where year(字段名)='2004'
select * from table where datename(yyyy,data)='2004'
这样不方便点吗?