mysql : copy teble
11月 6th, 2009
テーブルをコピーしてみます。 table_a を table_b にコピー mysql> create table table_b like table_a; Query OK, 0 rows affected (0.32 sec) mysql> show create table table_b\G; *************************** 1. row *************************** Table: table_b Create Table: CREATE TABLE `table_b` ( `id` varchar(32) NOT NULL, `url` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `description` text NOT NULL, `created_at` datetime default NULL, `updated_at` timestamp […]