•3 năm
Làm cách nào để chọn ngày đầu tiên của một tháng trong SQL?
```plaintext SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth Will it work? ```
```plaintext SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth Will it work? ```
Show original content
4 users upvote it!
2 answers