Oracle 5.0 Reference Manual page 1199

Table of Contents

Advertisement

Prior to MySQL 5.0.11, the output columns from this statement were shown as
Table.
Use of
SHOW CREATE VIEW
for the view in question.
You can also obtain information about view objects from INFORMATION_SCHEMA, which contains a
table. See
VIEWS
MySQL lets you use different
support. For example, you might use the
the standard SQL concatenation operator, the double bar (||), in your queries. If you then create
a view that concatenates items, you might worry that changing the
value different from
matter how you write out a view definition, MySQL always stores it the same way, in a canonical form.
Here is an example that shows how the server changes a double bar concatenation operator to a
[887]
CONCAT()
mysql>
SET sql_mode = 'ANSI';
Query OK, 0 rows affected (0.00 sec)
mysql>
CREATE VIEW test.v AS SELECT 'a' || 'b' as col1;
Query OK, 0 rows affected (0.01 sec)
mysql>
SHOW CREATE VIEW test.v\G
*************************** 1. row ***************************
Create View: CREATE VIEW "v" AS select concat('a','b') AS "col1"
...
1 row in set (0.00 sec)
The advantage of storing a view definition in canonical form is that changes made later to the value of
[495]
sql_mode
comments prior to
13.7.5.11.
SHOW DATABASES
SHOW {DATABASES | SCHEMAS}
[LIKE 'pattern' | WHERE expr]
SHOW DATABASES
SHOW DATABASES
names to match. The
discussed in
You see only those databases for which you have some kind of privilege, unless you have the global
SHOW DATABASES
If the server was started with the
statement at all unless you have the
MySQL implements databases as directories in the data directory, so this statement simply lists
directories in that location. However, the output may include names of directories that do not
correspond to actual databases.
13.7.5.12.
SHOW ENGINE
SHOW ENGINE
SHOW ENGINE
currently are supported:
SHOW ENGINE BDB LOGS
SHOW ENGINE INNODB STATUS
requires the
Section 19.17, "The
sql_mode
[540]
could cause the view to become invalid. But this is not the case. No
ANSI
function:
View: v
will not affect the results from the view. However an additional consequence is that
are stripped from the definition by the server.
SELECT
Syntax
lists the databases on the MySQL server host.
as of MySQL 5.0.2. The
clause can be given to select rows using more general conditions, as
WHERE
Section 19.18, "Extensions to
privilege. You can also get this list using the
--skip-show-database
Syntax
engine_name
{LOGS | STATUS }
displays log or status information about a storage engine. The following statements
Syntax
SHOW
[578]
SHOW VIEW
INFORMATION_SCHEMA VIEWS
[495]
settings to tell the server the type of SQL syntax to
[540]
SQL mode to ensure MySQL correctly interprets
ANSI
[896]
clause, if present, indicates which database
LIKE
Statements".
SHOW
[578]
SHOW DATABASES
1179
Table
privilege and the
SELECT
Table".
[495]
sql_mode
is a synonym for
SHOW SCHEMAS
command.
mysqlshow
[421]
option, you cannot use this
privilege.
and
Create
[578]
privilege
setting to a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents