如何解决FK限制?用触发器或其他东西? #IF "DELETE FROM human where name='a';", error due to the FK contraist.
# If the error, I want in the order:
# FIRSTLY. DELETE FROM address where name='a';
# SECONDLY. DELETE F
我有以下域类: public class Installation : Entity<Installation>
{
public virtual string Name { get; set; }
public virtual IList<Institution> Institutions { get; set; }
public Installation(
我想下面 class User < ActiveRecord::Base
has_many :mcollections, :foreign_key=>'obj_id'
end
下面描述的的has_many关系表mcollections的定义 create table mcollections (
id int not null auto_increment,