CAST

Syntassi

CAST(espr AS tipo)

Spiegazione

La funzione CAST() accetta un valore di un tipo e ne restituisce uno di un altro tipo, similarmente a CONVERT(). Si veda la descrizione di CONVERT() per ulteriori informazioni.

La differenza principale tra CAST() e CONVERT() è che CONVERT(espr, tipo) è una sintassi ODBC, mentre CAST(espr as tipo) e CONVERT(... USING ...) sono sintassi di SQL92.

Vedi anche

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.