CONVERT( @date+' 23:59:59' , datetime,120)
解决方案 »
- 距现在不超过24小时的查询怎么做?
- 生成费用清单的问题,100分
- 求一SQL语句
- 一个sql语句 简单问题
- 使用SQL2005打开表C盘空间也减少问题
- 做数据库订阅与发布对服务器有什么要求?
- select * from db1.table1 where acctid=select acctid from db1.table2 where balance=0 这句话正确的该如何写?
- 我的vc6.0程序连不上数据库,请问是否是msado15.dll有问题?
- 高分请教Sql Server配置问题
- 关于ACCESS的问题
- 关于MIS系统里程序不能对SQL SERVER 2000操作的问题!(急,在线等待!!!)
- 插入记录报错Cannot insert duplicate key in object 'cUser'.???
set @date = '20050106'select CONVERT( datetime, @date+' 23:59:59' )
set @ = '20050101'select cast(@ +' 23:59:59' as datetime)
set @ = '20050101'
select @+convert(datetime,' 23:00')整个世界更清净
set @date='20040101'select convert(datetime,@date+' 23:59:59')
set @date = '2005-01-06'select CONVERT( datetime, @date+' 23:59:59',120 )--@date中间要‘-’号
set @date='20040101'
select @date+convert(datetime,' 23:00')