longhtml / qeephp

Automatically exported from code.google.com/p/qeephp
0 stars 0 forks source link

关联表的处理方式改进 #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
现在使用 
linkRead、linkCreate、linkUpdate、linkRemove、linkRemoveFillValue 来
指示操作主表时如何操作关联表。

应该改进为使用和数据库外键约束相匹配的处理方式。

mysql5 支持的处理方式:

reference_definition:
    REFERENCES tbl_name [(index_col_name,...)]
      [MATCH FULL | MATCH PARTIAL | MATCH SIMPLE]
      [ON DELETE reference_option]
      [ON UPDATE reference_option]

reference_option:
    RESTRICT | CASCADE | SET NULL | NO ACTION

Original issue reported on code.google.com by dualf...@gmail.com on 21 Jul 2007 at 3:28

GoogleCodeExporter commented 8 years ago

Original comment by dualf...@gmail.com on 29 Jul 2007 at 7:18

GoogleCodeExporter commented 8 years ago

Original comment by dualf...@gmail.com on 26 Feb 2008 at 3:19