select t.*,t1.person_names from itil_duty_group t ,( select p.duty_group_id, WMSYS.WM_CONCAT(p.person_name) person_names From itil_duty_group_person p where 1=1 GROUP BY p.duty_group_id) t1 where t.id = t1.duty_group_id…
修改表字段语句: alter table 表名 alter column 字段名 set data type varchar(7700) 如: ALTER TABLE JV_BI_BACK_OPER_LOG alter column OPERATION_DESC set DATA TYPE varchar(7700) 查看表字段语句:select *from syscat.columns where tabname = '表名' and colname = '表列名',如: select *…
批量获取oracle的表和表字段注释 --用户表注释表 SELECT * FROM USER_TAB_COMMENTS WHERE TABLE_NAME LIKE 'WEB_ISC_%'; --显示指定表的注释 SELECT 'comment on table ' || T.TABLE_NAME || ' is ''' || T.COMMENTS || '''' FROM USER_TAB_COMMENTS T WHERE T.TABLE_NAME LIKE 'WEB_ISC_%'; --用户字…