ITPub博客

首页 > 数据库 > Oracle > 导出oracle表记录为insert脚本

导出oracle表记录为insert脚本

原创 Oracle 作者:uuxa 时间:2009-03-27 11:20:52 0 删除 编辑

格式:

Select 'Insert into 表名 (column1, [column2,..columnX]) '

|| ' Values('

|| column1 || ','

|| column2 || ','

[|| column3,..columnX]

|| ');'

from 表名

[@more@]SELECT 'Insert into dct_optype (OPTYPENUM,OPPARTNUM,OPTYPENAME,REALOPTYPE) '
|| 'Values('
|| optypenum
|| ','
|| oppartnum
|| ','''
|| optypename
|| ''''
|| ','
|| realoptype
|| ')'
FROM dct_optype

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7416120/viewspace-1019493/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    111
  • 访问量
    301518