▣ GALLERY 테이블 생성 , 데이터 삽입 및 적용 > ORACLE

본문 바로가기

사이트 내 전체검색

뒤로가기 ORACLE

▣ GALLERY 테이블 생성 , 데이터 삽입 및 적용

페이지 정보

작성자 관리자 작성일 23-04-18 12:31 조회 521 댓글 0

본문

alter table notice add code varchar2(20) default 'notice'; -- code 칼럼 및 값 추가


CREATE TABLE GALLERY(

id NUMBER, 

title NVARCHAR2(200),

content CLOB,

writer NVARCHAR2(20),

signdate TIMESTAMP,

hit NUMBER,

files NVARCHAR2(500),

code VARCHAR2(20)

);


insert into GALLERY values(1,'아린','이쁘다','3333','2023-04-01 10:04:02',0,'','gallery');

insert into GALLERY values(2,'미연','아름답다','2222','2023-04-02 11:51:34',22,'','gallery');


commit;




 select id,title,code from notice;


fb42c771b4a98a234552269c4544faf1_1681789271_7532.png


 

 select id,title,code from gallery;


fb42c771b4a98a234552269c4544faf1_1681789303_492.png
 



 select id,title,code from notice UNION select id,title,code from gallery order by code;


fb42c771b4a98a234552269c4544faf1_1681789315_0288.png

추천0 비추천 0

댓글목록 0

등록된 댓글이 없습니다.


Copyright © dancePKT. All rights reserved.
PC 버전으로 보기