SQL獲取本周本月本季度記錄的語句

前提條件:假設表名為:tableName;時間字段名為:theDate   ①查詢本周記錄   select * from tableName where DATEPART(wk, theDate) = DATEPART(wk, GETDATE()) and DATEPART(yy ...

Wed Jun 08 16:01:00 CST 2016 0 3594
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM