1、oracle数据库获取uuid函数
select lower(sys_guid()) from dual; --生成单独的GUID
--生成100条
select sys_guid() from dual connect by rownum<100 --批量生成GUID
2、通过SQL语句查看数据库表的列数
select count(*) from user_tab_cols where table_name='ORG';--表名含英文的话应为英文大写字母
3、同一服务器同一账号下的复制表
只复制表结构的sql :create table b as select * from a where 1<>1
即复制表结构又复制表中数据:create table b as select * from a where 1=1
复制表的指定字段:create table b as select row_id,name,age from a