zoukankan      html  css  js  c++  java
  • 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'过滤

     

    拼命敲
  • 相关阅读:
    让网页活起来!韵律线带你提升带你飞!
    打造晶格化背景
    简单banner制作
    设计模式-适配器模式
    类、方法的单一职责
    .NET趋势
    C# Delegate Event
    VB.NET项目技术总结
    版本控制工具Git的使用
    delete语句要注意的BUG.
  • 原文地址:https://www.cnblogs.com/wuyuwuyueping/p/9528431.html
Copyright © 2011-2022 走看看