Comment puis-je sélectionner le premier jour d'un mois en SQL ?

```plaintext SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth ``` Cela fonctionnera-t-il ?
```plaintext SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS StartOfMonth ``` Cela fonctionnera-t-il ?
Montrer le contenu original

4 users upvote it!

2 answers