易截截图软件、单文件、免安装、纯绿色、仅160KB

求一SQL语句 - MS-SQL Server / 应用实例

从页面上得到了一个日期sendTime,比如今天是6月1号,sendTime刚好也是6月1号,则能查出数据。求语句
SQL code:

select * from aaa where sendTime=?????



引用
select * from aaa where datediff(dd,sendTime,getdate()) = 0


-- 正解!

额,来晚了。。。

SQL code:

--try

select * from aaa where right(convert(nvarchar(10),sendTime,120),5)='06-01'



SQL code:
select * from aaa where convert(nvarchar(10),sendTime,120)='2010-06-01'


,. .

多谢圣上。
又看到小F了··


相关问答:

csv文件转换成sql导入到数据库,没有数据为何?

执行的顺序:
1)文件浏览框(选择文件使用)
选择好文件后
点击一个导入按钮的时候 ,把上面上传框里的csv文件以一个ID为文件名,上传到**/**文件夹下
2)读取这个文件夹下的csv的文件,转换成sql
3 ......

sql语句问题 - Java / Web 开发

select o_customer,o_price from orders having o_price >=avg(o_price)
select o_customer,o_price from orders where o_price >=(select avg(o_price) from orders)
我感觉没有区别啊,怎么在mysql会有 ......

asp wap sql语句中获取的汉字不好事 - Web 开发 / ASP

SQL code:

rs.open "select * from guide where city_name='北京' order by pai desc",conn,1,1
do while not rs.eof or rs.bof
。。
。。
。。
rs.movenext
loop
这个sql语句在wap站里 本身有 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号