MySQL
yzhw2008
这个作者很懒,什么都没留下…
展开
-
MySQL 常用命令
1、添加外键 [code="java"] mysql> alter table teacher add constraint fk_class_id Foreign Key(class_id) Refe rences classes(class_id) on delete cascade; [/code] 外键的名字不能叫FK; 如果要在父表中更新或者删除一行,并且在子表中也有一行或者...原创 2012-10-08 14:13:17 · 50 阅读 · 0 评论 -
(转载)MySQL添加用户
Nowadays security is more and more important even in case of smaller websites. As a lot of site uses some database so this is one point where we can make some improvements. In this article we will ...原创 2012-10-09 22:18:45 · 71 阅读 · 0 评论