mysql

複合キー & auto_increment & innodb

複合キーにauto_incrementをつけてtableを作成できるのでもしやとおもったけど、 期待通りにはいってなかった。 1,aaa 2,aaa 3,bbb 4,bbb期待 1,aaa 2,aaa 1,bbb 2,bbb

comment memo

schemaにコメントを書いたり取得する方法 create table foo ( boo int comment 'this is comment of boo' ) comment = 'this is comment of foot'; show table status; show full columns from foo;