SQL
SYS 로 작업
alter session set "_ORACLE_SCRIPT"=true;
create user @ identified by
grant connect, resource, create view, unlimited tablespace to @;
생성한 계정으로 작업
create table tbl_person_interest
(seq number
,name Nvarchar2(20) not null
,school Nvarchar2(10) not null
,color varchar2(10) not null
,food Nvarchar2(30)
,registerday date default sysdate not null
,updateday date
,constraint PK_tbl_person_interest primary key(seq)
);
create sequence person_seq
start with 1
increment by 1
nomaxvalue
nominvalue
nocycle;
정리
- JSPServlet -> webapp -> WEB-INF -> chap05 -> SQL -> chap05_oracle.sql