-- データベースを指定するか
use xxxdb;
-- テーブルの前に明示する。
select * from xxxdb.table;
1075
MSG
there can be only one auto column and it must be defined as a key
DESC
Primary Key がないと言われる
Message: テーブルの定義が違います;
Auto increment && Primary Key OFF にすると言われるらしい
[ KEY ] mark をつけるのが POINT
1048
ERROR 1048 (23000) at line 32: Column 'name' cannot be null
DESC
NOT NULL 属性の Column に null をいれようとした
CREATE TABLE tbl (
name char(32) NOT NULL,
age INT NOT NULL
);
-- insert tbl (name,age) values(null,20);
insert tbl (name,age) values("suzuki",20);