oracle的一些常规操作sql语句集
来源:互联网 发布:lrc歌词编辑软件 编辑:程序博客网 时间:2024/05/23 01:21
--------创建表--------------
create table test_20151215
(
name varchar2(20)
)
-------给表增加字段(增加性别,年龄两个字段)--
alter table test_20151215 add (sex varchar2(10),age number);
-------------给表增加说明(注释)-----------
comment on table test_20151215 is '这是一张用户表'
-------给表字段增加注释---------------
comment on column test_20151215.name is '用户姓名';
comment on column test_20151215.sex is '性别';
comment on column test_20151215.age is '年龄';
--------增加一个字段(descrition--自我介绍)--------------
alter table test_20151215 add (descrition varchar2(500));
--添加字段注释
comment on column test_20151215.descrition is '自我介绍';
----------改变字段长度(把descrition的长度改为200)--------
alter table test_20151215 modify (descrition varchar2(200));
----------删除表的一个字段(删除descrition)---------------------
alter table test_20151215 drop column descrition;
------表重命名------
alter table test_20151215 rename to test_20151216;
create table test_20151215
(
name varchar2(20)
)
-------给表增加字段(增加性别,年龄两个字段)--
alter table test_20151215 add (sex varchar2(10),age number);
-------------给表增加说明(注释)-----------
comment on table test_20151215 is '这是一张用户表'
-------给表字段增加注释---------------
comment on column test_20151215.name is '用户姓名';
comment on column test_20151215.sex is '性别';
comment on column test_20151215.age is '年龄';
--------增加一个字段(descrition--自我介绍)--------------
alter table test_20151215 add (descrition varchar2(500));
--添加字段注释
comment on column test_20151215.descrition is '自我介绍';
----------改变字段长度(把descrition的长度改为200)--------
alter table test_20151215 modify (descrition varchar2(200));
----------删除表的一个字段(删除descrition)---------------------
alter table test_20151215 drop column descrition;
------表重命名------
alter table test_20151215 rename to test_20151216;
0 0
- oracle的一些常规操作sql语句集
- mysql的一些常规操作
- Oracle 一些SQL语句
- 一些SQL操作语句
- Oracle Sql 语句的一些用法
- 记录一些sql语句oracle的
- 一些有用的oracle sql语句
- 一些 Oracle Sql 语句的使用
- oracle关于权限的一些sql语句
- oracle的一些sql语句demo
- SQL语句的一些基础操作
- 常规SQL语句优化
- Oracle 操作时间的SQL语句
- 表操作的常用SQL语句-oracle
- oracle 数据库的一些sql操作
- ORACLE和SQL SERVER的SQL语句中的一些区别
- oracle 一些基本操作语句
- oracle 常规操作
- iframe 自适应高度
- 新闻列表中标题和日期的左右分别对齐的几种处理方法
- 北京安徽企业商会第一届会长何帮喜同志讲话
- 很特别的一个动态规划入门教程
- AngularJS(03)---Http对象
- oracle的一些常规操作sql语句集
- linux文件缓存相关
- Java中IO流小结
- HDu2212
- Spring的AOP常见错误(顶)
- 控制台主程序通过调用DLL显示对话框
- 我对LDA的一点理解
- sql server data type
- $.each的用法