ORACLE 게시판 기본 활용 sql query
반응형
오라클 게시판 기본 활용 쿼리
-list <게시판 리스트 출력>
selct no, title, writer, writedate,hit
from board order by no desc
-view <2번 게시물 조회>
select no, title, content, writer, writedate, hit
from board where no=2
-write <글작성>
insert into board(no, title, content, writer)
values (board_seq.nextval, '제목'. '내용', '작성자')
-update <글수정>
update board set title='제목' , content='내용', writer='작성자' where no=2
-delete <글삭제>
delete from board where no=2
반응형
'Programming > Oracle' 카테고리의 다른 글
[Oracle] lock 해제 (0) | 2017.08.03 |
---|---|
[Oracle] Insert와 commit (0) | 2017.06.14 |
[Oracle] 사용자 및 테이블 생성,삭제 (0) | 2017.06.08 |
[oracle] Table 쿼리 (0) | 2017.06.07 |
댓글