Oracle快速生成表和字段sql
作者:互联网
Oracle快速生成表和字段sql
SELECT DISTINCT CONCAT(CONCAT('COMMENT ON table ', TABLE_NAME), ' IS '''';' ) FROM user_col_comments WHERE TABLE_NAME = 'BANKPRODUCTGROUP'
UNION
SELECT CONCAT(CONCAT(CONCAT(CONCAT('comment on column ', TABLE_NAME ), '.'), COLUMN_NAME), ' IS '''';' )FROM user_col_comments WHERE TABLE_NAME = 'BANKPRODUCTGROUP'
标签:BANKPRODUCTGROUP,NAME,表和字,sql,Oracle,TABLE,WHERE,CONCAT 来源: https://www.cnblogs.com/mqkblog/p/15271678.html