SHOW CREATE FUNCTION

Sintassi

SHOW CREATE FUNCTION nome_funzione

Spiegazione

Questa istruzione è simile a SHOW CREATE PROCEDURE ma funziona per le Stored Function.

L'output di questa istruzione è influenzato in maniera inaffidabile dalla variabile sql_quote_show_create - si veda http://bugs.mysql.com/bug.php?id=12719 in proposito.

Esempio

MariaDB [test]> SHOW CREATE FUNCTION VatCents\G
*************************** 1. row ***************************
            Function: VatCents
            sql_mode: 
     Create Function: CREATE DEFINER=`root`@`localhost` FUNCTION `VatCents`(price DECIMAL(10,2)) RETURNS int(11)
    DETERMINISTIC
BEGIN
 DECLARE x INT;
 SET x = price * 114;
 RETURN x;
END
character_set_client: utf8
collation_connection: utf8_general_ci
  Database Collation: latin1_swedish_ci

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.