>> Delete Reply from No. 7150 article
No. RE: [질문]mysql에서 테이블에서.......

등록 2000-10-01 08:51:00 By localhost     조회 2
이름 김서방    

		: create table testboard(
: no int(5) default '0' not null auto_increment,
: num int(5) default '0' not null, <-------추가
: idx int(5) default '0' not null,
: usrtitle tinytext,
: contents text,
: replyon int(1) default '0' not null,
: replyto int(5) default '0' not null,
: replyfrom int(5) default '0' not null, <-------추가
: replydepth int(5) default '0' not null,
: hit int(5) default'0' not null,
: usrname varchar(12),
: usrpasswd char(28),
: usremail varchar(80),
: filluptime int(11) default '0' not null,
: primary key (no)
: ) 
:
: testboard라는 테이블에서요  "<----추가"라는 부분을 추가 할려면
: 어떻게 추가 해야 하나요?
: 그러니깐 추가 부분만 빼고 testboard테이블을 작성하였습니다.
: 근데 빼먹은 부분이 있어서 추가 부분을 추가할려고 하는데
: 어떻게 해야하나요?
: 상세하게 알려줬으면 좋겠습니다.
: 그리고 불필요한 부분을 지울려면 어떻게 하는지도 알려주세요.
:
: --
: 점점 알아가는 이 기쁨!!
alter table명령으로 테이블을 변경하실수 있습니다.
alter table 과 같이 쓸수 있는형식...
 alter table 테이블명 add 필드명 필드타입(추가시)
ex)alter table testboard num int(5) default '0' not null
 alter table 테이블명 change 기존필드명 새필드명 필드타입(변경시)
ex) alter table testboard num number int(10)
 alter table 테이블명 drop 필드명(삭제시)
ex) alter table test drop num(num이라는 필드를 지운다)
필드와 레코드는 아시죠....??? ^.^--리눅스 서핑준비 완료!!!!
펭귄습격하러 간당.....^.^
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved