oracle 建用户

来源:互联网 发布:智能电视怎样安装网络 编辑:程序博客网 时间:2024/05/16 11:40

--创建用户.
create user java identified by java ;
--授权
grant connect , resource to java;

--创建表
create table weatherdata
(
 cityId int not null ,
 inputTime varchar(20) not null ,
 cityArea varchar (20) not null,
 cityWeather varchar (50)
);

-- 创建 sequence.
create sequence sequence_cityID start with 1  increment by 1 maxvalue 1000000000000 ;
-- 插入数据 .

insert into weatherdata(cityId,inputTime,cityArea,cityWeather) values(sequence_cityID.nextval,'xxx-xx-xx','西安','多云 风力2级别');


oracle中还有很多的命令、这就不一一列举了、百度和谷歌上都特别的多、只是在用的时候看看就是了。


原创粉丝点击