首页 > 其他 > 详细

Oracal

时间:2016-08-11 17:23:06      阅读:122      评论:0      收藏:0      [点我收藏+]

增删改查

1.增加数据表

Create table users

(

       userid VARCHAR2(4),

       username VARCHAR2(20),

       userpass VARCHAR2(20),

);

2.删除数据表内容

Drop table T_B_RISK_RESULT_SUM; 删除数据表

Truncate table T_B_RISK_RESULT_SUM; 删除数据表内容

3.插入内容

Insert into users values(“ ”, ” ”,” ”);  根据表中数据插入相应的数据

复制表中内容

Insert into users(userid,username,userpass) select * from users;

4.修改内容

Update 表名 set 字段=”xx”where 字段=xxx”;

=> update users set userid=”03”where userid=05;

 

 

创建序列名(顺序不固定)

create sequence a_seq       --创建序列名字为   a_seq
minvalue 1               --  最小值为      1
maxvalue 99999   ---  最大值为      99999   
start with 1            ---   开始值       1
increment by 1           ---每次增长值     1
cache 100;               ----缓存大小      100

Oracal

原文:http://www.cnblogs.com/laoniaofly/p/5761544.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!