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로 바꿔준다.
'iPhone dev. > SQLite, FMDatabase' 카테고리의 다른 글
How to get table list of sqlite in iphone (0) | 2012.02.20 |
---|