|
原帖由 fengfeng2004 于 2009-3-29 19:57 发表 ![]()
DML表的顺序要一致。
外键要加索引
Nowadays your second requirement "外键要加索引" is not needed in most cases. I recently posted a message about this at
http://www.freelists.org/post/or ... arentchild-relation,3
"it [the index on the child foreign key column] only makes a little difference in case of delete on parent
and the delete must be cascaded."
Yong Huang |
|