" /> Mot de passe <br /><input type="password" name="passwd" id="passwd" class="inputbox" size="18" alt="password" />
Accueil SQL now ()
PDF

NOW()

Syntaxe SQL NOW ()

SELECT MAINTENANT() D ' nom_table

Exemple 1

Prod_idProductNameUnitéUnitéPrice
1 Jarlsberg 1000 g 10.45
2 Mascarpone 1000 g 32.56
3 Gorgonzola 1000 g 15.67

1
SELECT ProductName, UnitéPrice, Maintenant() que PerDate D ' Produits

Résultat Requête:

ProductNameUnitéPricePerDate
Jarlsberg 10.45 07/10/2008 11:25:02
Mascarpone 32.56 07/10/2008 11:25:02
Gorgonzola 15.67 07/10/2008 11:25:02

Exemple 2 pour MySQL

Créer une table contenant le NOW () la valeur par défaut.

Autorisation

Nice, l'Ajax Sondage

Lequel de mes extensions est le meilleur?

Statistiques

Publicité