블로그 이미지
송시혁

calendar

1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

Notice

Tag

Recent Post

Recent Comment

Recent Trackback

Archive

2018. 6. 4. 14:37 네트워크/database실습

alter, drop, 


 DDL - Alter table

 

 테이블 이름 변경

 alter table order rename to orders;

 

 테이블에 새로운 속성(attribute(column)추가

 alter table order add colunm tax integer;



테이블 전체 삭제



테이블 이름 변경


테이블 속성 (행)추가


alter table orders(테이블 명) add colunm customerid integer not null default 0;




테이블 이름 변경


vi 내에서 이름 바꾸기

확장자 모드 : 1,$ 1부터 전체 라인

s     = substitute. 대체하다.

/b    = b라는 문자

/sum = b를 대신할 문자

/g    = b라는 문자 전부를 바꾸겠다는 것.


posted by 송시혁