梳理mysql外键约束的知识点。
1、mysql外键约束只对InnoDb引擎有效;
2、创建外键约束如下:
DROP TABLE IF EXISTS t_demo_product;
CREATE TABLE IF NOT EXISTS t_demo_product(
proid int(20),
proname...
1 为表和列创建备注
drop table if exists test;
create table test(
objectid serial not null,
num integer not null,
constraint pk_test_objectid primary key (objectid),
constraint ck_test_num ch...