create tablespace test datafile 'c:\test\ss.dbf' size 10M;
create user oracle_1 identified by test default tablespace test;
grant connect, resource to oracle_1;
select * from tab;
@select * from employee
select * from employee;
desc employee; 테이블 구조 확인
select 이름 from 테이블;
set null " " " " 안에 null 값에 채울 말. "1"이면 null값에 모두 1이 들어감.
sel> save a001
host
notepad a001.sql dos 에서 실행 exit
@a001
dos에서 버퍼찾는 방법 dir a001.buf
spool b001
<- 시험때 사용
spool off
dos에서 갈무리 내용 찾는 방법 dir b001.lst
set heading off -> 속성 출력 x
set heading on
set linesize 80; 화면에 출력되는 가로 길이 지정
set pagesize 10;
select * from employee;
column fname heading 'name' fname이 name으로 속성만 바뀜
column fname 확인 방법
column fname clear 컬럼 해제
column fname format a20; fname의 크기를 20으로 지정 (이때 원래 데이터 보다 작게 잡으면 #으로 체워짐) a가 뭔지 모르겠네
column sal format 0,000,000 숫자에 대해 자리 지정
create user oracle_1 identified by test default tablespace test;
grant connect, resource to oracle_1;
select * from tab;
@select * from employee
select * from employee;
desc employee; 테이블 구조 확인
select 이름 from 테이블;
set null " " " " 안에 null 값에 채울 말. "1"이면 null값에 모두 1이 들어감.
sel> save a001
host
notepad a001.sql dos 에서 실행 exit
@a001
dos에서 버퍼찾는 방법 dir a001.buf
spool b001
<- 시험때 사용
spool off
dos에서 갈무리 내용 찾는 방법 dir b001.lst
set heading off -> 속성 출력 x
set heading on
set linesize 80; 화면에 출력되는 가로 길이 지정
set pagesize 10;
select * from employee;
column fname heading 'name' fname이 name으로 속성만 바뀜
column fname 확인 방법
column fname clear 컬럼 해제
column fname format a20; fname의 크기를 20으로 지정 (이때 원래 데이터 보다 작게 잡으면 #으로 체워짐) a가 뭔지 모르겠네
column sal format 0,000,000 숫자에 대해 자리 지정