iPhone dev./SQLite, FMDatabase
mysql ALTER 명령어
홍진표
2012. 4. 11. 16:19
ALTER TABLE `events` ADD `test` TEXT NOT NULL AFTER `imgpath`
위 명령어는 events table에 test(TEXT)라는 column을 imgpath column 뒤에 넣는 명령어이다.
ALTER TABLE `events` rename `test1` `test2` TEXT NOT NULL
위 명령어는 events table의 test1 column의 이름을 test2로 바꿔준다.