Oracle--ORA-01439 ---+查询小记录 +--list过滤

--importFlag字段改为string类型
alter table Ghreqcoverage modify (importFlag varchar2(2));-- 因为importFlag字段中有值 直接修改报错:column to be modified must be empty to change datatype
--表Ghreqcoverage  中的 importFlag字段改为string类型
alter table Ghreqcoverage add tmp_importFlag varchar2(2);   -- 添加临时列
update Ghreqcoverage set tmp_importFlag = importFlag ;     --将目标字段中数据加入到临时列中
update Ghreqcoverage set importFlag = null;            --将目标字段数据清空
alter table Ghreqcoverage modify (importFlag varchar2(2));    --更改目标字段类型
update Ghreqcoverage set importFlag = tmp_importFlag;       --将临时列数据加回到目标字段中
alter table Ghreqcoverage drop column tmp_importFlag;     --清除临时列
commit;

--查询syssource字段在那些表中出现过
select distinct table_name from user_col_comments t where t.column_name = upper('syssource');
select table_name from user_col_comments where column_name='SYSSOURCE';

prpTmains = this.selectByProposalNoList(vciProposalNo, tciProposalNo);                //[PrpTmain( xxx=xxx , xxx=xxx....)]
prpTmains = prpTmains.stream().filter(n->"GH".equals(n.getSysSource())).collect(Collectors.toList());   //syssource='GH'过滤

 

拼命敲
原文地址:https://www.cnblogs.com/wuyuwuyueping/p/9528431.html