存储过程--把查询出来的数据直接插入表     

    sql_str := ' insert into  T_XS_SHOP(' || chr(10) ||
                 'SHOP_ID,' || chr(10) ||
                 'TITLE'  || chr(10) ||
                 ')' || chr(10) ||
                 '(' || chr(10) ||
                 'select shop_id,shop_name from T_Base_ShopPublic@yb' || ' where shop_id in (' || strSelectedShopID || ')' ||
                 ')' ;
                
     dbms_output.put_line(sql_str);
     execute immediate sql_str;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2021-11-27
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案