回答編集履歴
1
追加
answer
CHANGED
@@ -1,2 +1,8 @@
|
|
1
1
|
ALTER TABLEで削除はいかがですか?
|
2
|
-
mysql> alter table [table_name] drop [column], drop [column2], drop [column3];
|
2
|
+
mysql> alter table [table_name] drop [column], drop [column2], drop [column3];
|
3
|
+
|
4
|
+
これが面倒となれば
|
5
|
+
コンバートプログラムをつくって
|
6
|
+
selectで必要なカラムを読み
|
7
|
+
insertする
|
8
|
+
前の人が言っていたSQLと同じだと思いますが
|