Oracle 5.0 Reference Manual page 1198

Table of Contents

Advertisement

SHOW CREATE FUNCTION
This statement is similar to
"SHOW CREATE PROCEDURE
13.7.5.8.
SHOW CREATE PROCEDURE
SHOW CREATE PROCEDURE
This statement is a MySQL extension. It returns the exact string that can be used to re-create the
named stored procedure. A similar statement,
stored functions (see
Both statements require that you be the owner of the routine or have
mysql.proc
Create Procedure
mysql>
SHOW CREATE PROCEDURE test.simpleproc\G
*************************** 1. row ***************************
Procedure: simpleproc
sql_mode:
Create Procedure: CREATE PROCEDURE `simpleproc`(OUT param1 INT)
mysql>
SHOW CREATE FUNCTION test.hello\G
*************************** 1. row ***************************
Function: hello
sql_mode:
Create Function: CREATE FUNCTION `hello`(s CHAR(20))
13.7.5.9.
SHOW CREATE TABLE
SHOW CREATE TABLE
Shows the
CREATE TABLE
[578]
SELECT
mysql>
SHOW CREATE TABLE t\G
*************************** 1. row ***************************
Table: t
Create Table: CREATE TABLE t (
id INT(11) default NULL auto_increment,
s char(60) default NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM
SHOW CREATE TABLE
sql_quote_show_create
13.7.5.10.
SHOW CREATE VIEW
SHOW CREATE VIEW
This statement shows a
mysql>
SHOW CREATE VIEW v;
+------+----------------------------------------------------+
| View | Create View
+------+----------------------------------------------------+
| v
| CREATE VIEW `test`.`v` AS select 1 AS `a`,2 AS `b` |
+------+----------------------------------------------------+
This statement was added in MySQL 5.0.1.
func_name
SHOW CREATE PROCEDURE
Syntax".
Syntax
proc_name
Section 13.7.5.7,
table. If you do not have privileges for the routine itself, the value displayed for the
or
Create Function
BEGIN
SELECT COUNT(*) INTO param1 FROM t;
END
RETURNS CHAR(50)
RETURN CONCAT('Hello, ',s,'!')
Syntax
tbl_name
statement that creates the given table. The statement requires the
privilege for the table. As of MySQL 5.0.1, this statement also works with views.
quotes table and column names according to the value of the
[495]
option. See
Syntax
view_name
CREATE VIEW
Syntax
SHOW
but for stored functions. See
SHOW CREATE
"SHOW CREATE FUNCTION
field will be NULL.
Section 5.1.4, "Server System
statement that creates the given view.
1178
FUNCTION, displays information about
Syntax").
access to the
SELECT
Variables".
|
Section 13.7.5.8,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents