在线等,sql语句,字段为年月日时分秒,在写where时只判断年月日
数据库为mysql
表名为:dataq
里面有四个字段分别为
id timex datey hname
1 2014-12-17 14:10:30 37 仓名称1
2 2014-12-17 12:10:30 36 仓名称1
3 2014-12-17 11:10:30 34 仓名称1
4 2014-12-17 10:10:30 39 仓名称1
5 2014-12-17 10:09:30 38 仓名称1
6 2014-12-16 14:10:30 33 仓名称1
7 2014-12-16 12:10:30 35 仓名称1
8 2014-12-16 11:10:30 37 仓名称1
9 2014-12-16 10:10:30 39 仓名称1
10 2014-12-16 10:08:30 40 仓名称1
想写一个SQL语句,
输出
2014-12-17 37 36 34 39 38
2014-12-16 33 35 37 39 40
请给出SQL语句,asp的语法
如:rs.open "select * from dataq where "此处如何引用timex" ='2014-10-21'' order by id asc",objconn,1,1