--alter table myTAB modify myfield not null novalidate;
来源:互联网 发布:unity3d ios 录屏处理 编辑:程序博客网 时间:2024/04/29 23:02
--alter table myTAB modify myfield not null novalidate;
--创建表
declare
tm_i integer;
begin
select count(*) into tm_i from user_tables where lower(table_name)=lower('aaa');
if tm_i>0 then
execute immediate 'drop table aaa ';
end if;
end;
/
create table aaa as select * from scott.dept where 1=2;
/
begin
insert into aaa select * from scott.dept where deptno=10;
insert into aaa select * from scott.dept where deptno=10;
commit;
end;
/
-- select * from aaa;
--添加字段
alter table aaa add cc varchar2(2);
--修改添加字段 默认值为 '0' 非空
alter table aaa modify cc default '0' not null novalidate;
insert into aaa (deptno,dname,loc) values (10,'name','local');
0 0
- --alter table myTAB modify myfield not null novalidate;
- Alter table alter |change |modify 区别
- Oracle alter table modify column Syntax example
- MySQL ALTER TABLE: ALTER vs CHANGE vs MODIFY COLUMN
- MySQL ALTER TABLE: ALTER vs CHANGE vs MODIFY COLUMN
- MySQL ALTER TABLE: ALTER vs CHANGE vs MODIFY COLUMN
- alter table tb_name change add add int(10) not null auto_increment primary key;
- MySQL ALTER TABLE: ALTER vs CHANGE vs MODIFY COLUMN 2014-07-03 14:13:11
- 备忘:Alter Table中: ALTER vs CHANGE vs MODIFY COLUMN 区别
- ALTER TABLE... defaul 0 (已有的默认为null)
- 【Sqlite】ALTER TABLE相关命令及change和modify的区别
- alter table
- ALTER TABLE
- Alter Table
- Alter table
- alter table
- ALTER TABLE
- alter table
- 记录型信号量---进程的同步与互斥面向对象的解决方案(一)
- 门禁控制器终端硬件
- HashMap的遍历
- pp
- BeanUtils\PropertyUtils工具包操作JavaBean
- --alter table myTAB modify myfield not null novalidate;
- 写给准备参加秋招的学弟学妹们~一定要来看哦~
- 一个非常有意思的在线工具网站(绝对不是广告)
- orale 创建表
- uboot移植与源码分析总结(3)-Serial驱动分析
- c语言重定向
- 《收集苹果》 动态规划入门
- 操作系统实验七之内存页面置换算法实验
- 2014-03-29.阿里实习生招聘笔试题目