Sql基础操作3

看着视频练习了一下基础操作,截取一部分重要的内容方便查看和总结

视频地址:http://study.163.com/course/courseLearn.htm?courseId=247003#/learn/video?lessonId=356098&courseId=247003

创建一个分类表

create cats(
 id int not null auto_increment,
 pid int not null default '0',
 name carchar(40) not null default ' ',
 desn text not null default ' ',
 primary key(id),
 index name(name,pid)
); 


你可能感兴趣的:(Sql基础操作3)