This is a read-only copy of the MariaDB Knowledgebase generated on 2024-05-15. For the latest, interactive version please visit https://mariadb.com/kb/.

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

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.