–以下代码是对emp表进行显示做设置
col empno for 9999;
col ename for a10;
col job for a10;
col mgr for 9999;
col hiredate for a12;
col sal for 9999;
col comm for 9999;
col deptno for 99;
set pagesize 20;
col tname for a20;
set pagesize 80;
–创建新表new_emp,复制emp表中的结构和数据到new_emp表中
create table copy_emp
as
select * from emp;
create table copy_copy_emp
as
select * from emp;
启动如下二个服务:【OracleServiceORCL(设置为手动启动)和OracleOraDb11g_home1TNSListener(设置为自动启动端口1521)】
类似于MySQL中的:use 数据库名,即use orcl;
即启动当前数据库名:orcl
select
使用password命令,为scott用户名修改新密码,以字母开头,但提倡使用tiger password
旧命令:tiger
新命令:abc123
再次输入新命令:abc123
退出sqlplus工具
exit
查询当前用户是谁
show user;
查询scott用户下的所有对象,使用tab表,