Application scenarios:
company Intranet data tables built after migrating to customers online, usually cannot be attached to export comments, need further pull
table field notes:
SELECT
*
FROM
(
SELECT
'comment on column ' || trim(t.TABSCHEMA) || '.' || t.TABNAME || '.' || t.COLNAME || ' is ' || '''' || t.REMARKS || '''' || ' GO' AS COMMENT
FROM
syscat. COLUMNS t
)
WHERE
COMMENT IS NOT NULL
Table annotation:
SELECT
*
FROM
(
SELECT
'comment on table ' || trim(t.tabschema) || '.' || t.tabname || ' is ' || '''' || t.REMARKS || '''' || ' GO' AS COMMENT
FROM
syscat. TABLES t
)
WHERE
COMMENT IS NOT NULL
Read More:
- An error occurred when opensips started the service“ ERROR:core :db_ check_ table_ Version: invalid version 7 for Table dialog found “
- DB: the solution of table already exist when migrating
- DB2 create table error – 104 42601 illegal symbol encountered in SQL statement
- Django. DB. Utils. Programmingerror: (1146, “table * doesn’t exist”) causes and Solutions
- DB2 encountered the problem of sqlcode = 911 lock table when updating record update
- db2 Database Error: table space access is not allowed
- Git pull error: pull is not possible because you have unmerged files
- django.db.utils.OperationalError: no such table: django_admin_log
- [Git] git pull pull remote git push to remote git commit submit reject
- 1093 – You can’t specify target table ‘table’ for update in FROM clause
- Insufficient table space ORA-00604 unable to extend table SYS.AUD by 8192
- Using curl to generate gnutls_ Handshake() failed: error in the pull function or gnutls recv error: error in the pull function
- Error 1146 (42s02): table ‘database name. Table name’ doesn’t exist ‘
- Errors in IntelliJ ieeasql statements and table names in @ table
- (element UI component table) how to add a style to a table
- Git Pull Failed solution
- Eclipse reset annotation shortcuts
- Solve a bug harvest of DB2 (sqlcode = – 805, sqlstate = 51002, error message = DB2 SQL error: sqlcode = – 805, sqlstate = 5100
- Git pull undo misoperation
- Pull is not possible because you have unmerged files