MySQL- tutoriaal

MySQL TUIS MySQL-inleiding MySQL RDBMS

MySQL SQL

MySQL SQL MySQL KIES MySQL WAAR MySQL EN, OF, NIE MySQL BESTEL DEUR MySQL VOEG IN MySQL NULL-waardes MySQL-OPDATERING MySQL SKEE MySQL-LIMIET MySQL MIN en MAX MySQL COUNT, AVG, SUM MySQL LIKE MySQL Wildcards MySQL IN MySQL TUSSEN MySQL aliasse MySQL sluit aan MySQL BINNE SLUIT AAN MySQL LOS LINKS AAN MySQL REGS SLUIT AAN MySQL KRUIS SLUIT AAN MySQL Self Sluit aan MySQL UNIE MySQL GROEP DEUR MySQL HET MySQL BESTAAN MySQL ENIGE, ALMAL MySQL INSERT SELECT MySQL-GEVAL MySQL nul-funksies MySQL-kommentaar MySQL-operateurs

MySQL- databasis

MySQL Skep DB MySQL Drop DB MySQL Skep tabel MySQL Drop Table MySQL Verander Tabel MySQL-beperkings MySQL nie nul nie MySQL Uniek MySQL-primêre sleutel MySQL buitelandse sleutel MySQL-tjek MySQL verstek MySQL Skep indeks MySQL Outo-verhoging MySQL-datums MySQL-aansigte

MySQL- verwysings

MySQL-datatipes MySQL-funksies

MySQL voorbeelde

MySQL voorbeelde MySQL Vasvra MySQL-oefeninge

MySQL TIMESTAMP() Funksie

❮ MySQL-funksies

Voorbeeld

Wys 'n datum-tydwaarde op grond van die argumente:

SELECT TIMESTAMP("2017-07-23",  "13:10:11");

Definisie en gebruik

Die TIMESTAMP()-funksie gee 'n datumtydwaarde terug gebaseer op 'n datum- of datumtydwaarde.

Let wel: As daar twee argumente met hierdie funksie gespesifiseer is, voeg dit eers die tweede argument by die eerste, en gee dan 'n datum-tydwaarde terug.

Sintaksis

TIMESTAMP(expression, time)

Parameterwaardes

Parameter Description
expression Required. A date or datetime value
time Optional. A time value to add to expression

Tegniese besonderhede

Werk in: Van MySQL 4.0

Meer voorbeelde

Voorbeeld

Wys 'n datum-tydwaarde op grond van die argumente:

SELECT TIMESTAMP("2017-07-23");

❮ MySQL-funksies