oracle数据库命令

oracle数据库命令
1.数据库启动,登陆数据库     sqlplus / as sysdba
2.开启数据库                           startup
3.创建表                                   create table team(id int,name varchar(50),sex varchar(10));
4.删除表                                   drop table team
5.插入                                       insert into team values(1,‘特朗普’,‘男’);
6.删除                                       delete team where name=‘特朗普’;
7.修改                                       update team set name=‘奥巴马’ where id=1;
   增加一列                                alter table team add class int;
8.查看表                                    select*from team;
9.查看符合条件的                      select*from team where sex=‘男’;
10.关闭数据库                           shutdown immediate
11.退出数据库                           exit

你可能感兴趣的:(文档资料)