PLSQL常用脚本2
来源:互联网 发布:如何做销售数据分析 编辑:程序博客网 时间:2024/05/16 08:13
建表
create table students(studentno number, studentname varchar2(20), classid number)
往表插入数据
insert into students(studentno ,studentname ,classid ) values(1, '张三', 1);
insert into students(studentno ,studentname,classid ) values(2, '李四',2);
insert into students(studentno ,studentname,classid ) values(3, '王五',3);
更新表一列
update students set classid=3 where studentno =3
删除表一列
delete from students where classid=3
在表增加一列
alter table students add classid varchar2(20)
修改表名
alter table students rename to students1
修改表一字段名
alter table students rename column studentname to studentname1
修改表字段类型
alter table students modify studentname varchar2(30)
删除表一列
alter table students drop column studentname
- PLSQL常用脚本2
- plsql常用
- plsql 导出 sql脚本
- Oracle常用脚本(2)
- PLSQL常用方法
- PLSQL常用方法汇总
- PLSQL常用方法汇总
- PLSQL常用方法汇总
- plsql常用函数
- PLSQL常用方法汇总
- PLSQL常用方法汇总
- PLSQL常用方法汇总
- PLSQL常用函数
- PLSQL常用方法汇总
- plsql常用方法
- PLSQL常用函数
- PLSQL常用知识点
- plsql常用函数
- 用ASP_Net实现将Word文档转换为PDF格式
- 寄存器分配策略
- Camara 自定义预览效果 PreviewCallBack 的使用
- PHP时间戳
- 中小企业网站建设
- PLSQL常用脚本2
- 吐槽不好的交互设计1——申通/豆瓣
- Adempiere 360LTS Delete Client
- <转>SY-SUBRC 的含义
- configure命令
- linux中的yum
- Linux下crontab命令的用法
- 你真的了解VMWare虚拟化网络吗?
- 使用SpringSide 3.1.4.3开发Web项目的全过程(三)