FORMAT ()
Синтаксис SQL FORMAT ()
| Paramètre | Descriptif |
|---|---|
| column_name | |
| le format |
Exemple SQL FORMAT ()
| Prod_id | ProductName | Unité | UnitéPrice |
|---|---|---|---|
| 1 | Jarlsberg | 1000 g | 10.45 |
| 2 | Mascarpone | 1000 g | 32.56 |
| 3 | Gorgonzola | 1000 g | 15.67 |
1 2 |
SELECT ProductName, UnitéPrice, FORMAT(Maintenant(),'AAAA-MM-JJ') que PerDate D ' Produits |
Résultat Requête:
| ProductName | UnitéPrice | PerDate |
|---|---|---|
| Jarlsberg | 10.45 | 10/07/2008 |
| Mascarpone | 32.56 | 10/07/2008 |
| Gorgonzola | 15.67 | 10/07/2008 |
Format SQL ()




