Oracle 批量修改字段长度 SELECT 'alter table '||a.table_name||' MODIFY '||A.COLUMN_NAME||' VARCHAR2(100);' , A.table_name,A.COLUMN_NAME,A.DATA_TYPE,A.DATA_LENGTH,A.* from user_tab_columns A WHERE A.COLUMN_NAME='CREATE_USER' AND a.DATA_LENGTH<=20:
oracle中创建sequence指定起始值 DECLARE V_Area_Id NUMBER; BEGIN SELECT MAX(T.Area_Id)+10 INTO V_Area_Id FROM T_PM_TankArea T; if V_Area_Id is null THEN select 1 into V_Area_Id from dual; END IF; EXECUTE IMMEDIATE 'create sequence S_PM_TankArea minvalue 1 maxv
原文:批量修改Ms SqlServer 的default(默认值) --1.取得数据库所有表的默认值: select t3.name as 表名,t1.name as 字段名,t2.text as 默认值 ,t4.name from syscolumns t1,syscomments t2,sysobjects t3 ,sysobjects t4 where t1.cdefault=t2.id and t3.xtype='u' and t3.id=t1.id and t4.xtype='d' a
mybatis oracle mysql 批量插入一.oracle的批量插入方式insert into db(id, zgbh, shbzh) select '1', '2', '3' from dual union all select '2', '3', '4' from dual union all select '3', '4', '5' from dual union all select '4', '5', '6' from dual union all select '5', '6