摘要:
1.一个有年月日的字段,只取年和月CONVERT(VARCHAR(7),字段,111)2.计算两个日期的天数DATADIFF()3.取分组后的第一条纪录。SELECT * ,ROW_NUMBER() OVER(PARTITION BY *** ORDER BY ***) AS SEQ_IDWHERE SEQ_ID = '1' 阅读全文
指键之吻
No man or woman is worth your tears, and the one who is, won‘t make you cry. |
|
|