外键测试

发表于:2008-10-16来源:作者:点击数: 标签:
关键字:测试

DROP TABLE IF EXISTS child;
DROP TABLE IF EXISTS parent;

DROP TABLE IF EXISTS child;
DROP TABLE IF EXISTS parent;

# creat table start
create table parent
(
 par_id int not null,
 primary key (par_id)
) type = innodb;


create table child
(
 par_id int not null,
 child_id int not null,

原文转自:http://www.ltesting.net