mysql.information_schema.VIEWS.sql Maven / Gradle / Ivy
SELECT
TABLE_SCHEMA AS TABLE_CATALOG,
NULL AS TABLE_SCHEMA,
TABLE_NAME,
VIEW_DEFINITION
FROM
INFORMATION_SCHEMA.VIEWS
ORDER BY
TABLE_CATALOG,
TABLE_SCHEMA,
TABLE_NAME
SELECT
TABLE_SCHEMA AS TABLE_CATALOG,
NULL AS TABLE_SCHEMA,
TABLE_NAME,
VIEW_DEFINITION
FROM
INFORMATION_SCHEMA.VIEWS
ORDER BY
TABLE_CATALOG,
TABLE_SCHEMA,
TABLE_NAME