写个存储过程试试看,SQL不支持直接插入LONG形变量

解决方案 »

  1.   

    可以写个程序来转换,
    也可以 用pb或delphi的datadump工具来倒
      

  2.   

    用EXPORT导出单个表数据,再IMPORT进新表应该可以
      

  3.   

    还用导入导出干嘛,insert into 不就可以了吗?
    insert into web_news(nid,
                         ntitle,
                         nsource,
                         ncontent,
                         adddate,
                         ntype,
                         ncount,
                         nkeys
                         )
     select id,title,address,content,time,class,counts,key
       from news;
    然后commit掉。
      

  4.   

    有long类型的字段,写insert into ... select ... from ...是错误的。
      

  5.   

    .对于long类型: 
    copy from username/userpassword@db_alias to username/userpassword@db_alias - 
    append a - 
    using select * from b;
      

  6.   

    我在imp 一个含有long型的table时
    要加大參數BUFFER
      

  7.   

    我发现long型很讨厌,在向库中插入数据时2000多点汉字,就要用存储过程
    哪位兄弟有没有上面的存储过程?本人对存储过程不熟,谢谢了
      

  8.   

    把ncontent 的long型改为clob型
    而后,insert into web_news(nid,
                         ntitle,
                         nsource,
                         ncontent,
                         adddate,
                         ntype,
                         ncount,
                         nkeys
                         )
     select id,title,address,to_clob(content),time,class,counts,key
       from news;
      

  9.   

    Benthic Software的impexp32工具导不错