为了账号安全,请及时绑定邮箱和手机立即绑定

Oracle数据库开发必备利器之SQL基础

难度入门
时长 4小时14分
学习人数
综合评分9.67
338人评价 查看评价
9.8 内容实用
9.7 简洁易懂
9.5 逻辑清晰
update userinfo set userpwd='111111';
select userpwd from userinfo;
update userinfo set userpwd='111',email='111@126.com';
select userpwd,email from userinfo;
select username from userinfo;
update userinfo set userpwd='123456' where username='xxx';
select username,userpwd from userinfo;
insert into userinfo_new select * from userinfo;
select id from useinfo_new;
insert into userinfo)new(id,username) select id,username from userinfo;
select id,username from userinfo_new;
create table userinfo_new as select * from userinfo;
desc userinfo_new;
select * from useinfo_new;
create table userinfo_new1 as select id,username from userinfo;
select * from userinfo_new1;
create table userinfo1(id number(6,0),regdate date default sysdate);
insert into userinfo1(id) values(1);
select *from userinfo1;
alter table userinfo modefy email deault '无';
insert into userinfo(id) values(3);
select id,email from userinfo;
insert into userinfo(id,email) values(4,'aaa');
insert into userinfo values(1,'xxx','123','xxx@126.com',sysdate);
select * from userinfo;
insert into userinfo(id,username,userpwd) values(2,'yyy','123');
select username,userpwd from userinfo;
,,,,...333333333
truncate table new_userinfo;
desc new_userinfo
drop table new_userinfo;
desc new_userinfo
alter table userinfo rename column email to new_email;
desc userinfo
rename userinfo to new_userinfo;
desc userinfo
desc new_userinfo
alter table userinfo add remarks varchar2(500);
desc userinfo
alter table userinfo modify remarks varchar2(400);
desc userinfo
alter table userinfo modify userpwd number(6,0);
desc userinfo
alter table userinfo drop column remarks;
desc userinfo
create table userinfo
(id number(6,0),
username varchar2(20),
userpwd varchar2(20),
email varchar2(30),
regdate date);
desc userinfo
drop tablespace test1_tablespace including contents;
alter tablespace test1_tablespace add datafile 'test2_file.dbf' size 10m;
select file_name from dba_files where tablespace_name='TEST1_TABLESPACE';
alter tablespace test1_tablespace drop datafile 'test2_file.dbf';
select file_name from dba_files where tablespace_name='TEST1_TABLESPACE';
alter tablespace test1tablespace read only;
select status from dba_tablespaces where tablespace_name='TEST1_TABLESPACE';
alter tablespace test1_tablespace read write;
alter tablespace test1_tablespace offline;
desc dba_tablespaces;
select status from dba_tablespaces where tablespace_name='TEST1_TABLESPACE';
alter tablespace test1_tablespace online;
select status from dba_tablespaces where tablespace_name='TEST1_TABLESPACE';
desc dba_data_files
select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';
select file_name from dba_temp_files where tablespace_name='TEMPTEST1_TABLESPACE';
create tablespace test1_tablespace datafile 'test1file.dbf' size 10m;
create temporary tablespace teptest1_tablespace tempfile 'tempfile1.dbf' size 10m;
课程须知
只要知道数据库是什么就可以来学习本课程呦!
老师告诉你能学到什么?
掌握Oracle的SQL语句基础,为后续的课程学习打好基础。

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消