select日期的问题。
select * from tableGet order by time得到数据如图所示
select * from tableGet where time>='2013年10月28日' and '2013年10月29日'<time
我想查询10月28号到10月29号之间的数据这么些对吗??
你还是改错了
呵呵,还真是改错了:
select * from tableGet where time>='2013-10-28' and time <= '2013-10-29'
[解决办法]
http://www.w3school.com.cn/sql/func_convert.asp
[解决办法]
CAST 和 CONVERT (Transact-SQL)
http://msdn.microsoft.com/zh-cn/library/ms187928.aspx