model 类的属性写错了 错误写法: public province { public int provinceId; public string Name; } public City { public int CityId; public string Name; public int provinceId; //错误写法,以为province 和city 通过province关联,city字段应该包括 provinc…
Oracle查找表的外键引用关系 select t1.table_name, t2.table_name as "TABLE_NAME(R)", t1.constraint_name, t1.r_constraint_name as "CONSTRAINT_NAME(R)", a1.column_name, a2.column_name as "COLUMN_NAME(R)" from user_constraints t1, user_cons…
前期准备: use studioA; go create table T(X int,Y int); insert into T(X,Y) values(1,1),(2,2); go ------------------------------------- use StudioB; go create procedure proc_for_B as begin s…