(非归档模式下)创建表T01: SQL> create table t01 as select * from dba_objects where 1=2; Table created. (非归档模式下)查看当前redo大小: SQL> select value 2 from v$mystat,v$statname 3 where v$mystat.statistic#=v$statname.statistic# 4 and v$statname.name='redo size' 5 / VAL…
从网上找到的方法,不过很不错,记录下来,也算是分享下~~ 有一个表,city,有列:cityID,cityName;将此表中所有数据,变为insert语句 select 'insert into tableName (cityID,cityName) values ('''+cityID+''','''+cityName+''')' as sqlStr from city; 这样就可以了; 如果在列中有其他类型,这样写会报错,可以用这个方法转换一下,STR(cityID,LEN(cityID))…
Build Insert Statements for the Existing Data in Tables 下面这个脚本实现了取得一个非空表中的所有insert语句 This script builds insert statements for the existing data in the tables. One can run the generated script to repopulate the data. -- By: Ashish Kumar -- Date Create…