2009.11.11 备注

ALTER TABLE "SCAL_SLAM_SLA"."SLI" ADD COLUMN "PARENT_ID" VARCHAR2(60);

ALTER TABLE "SCAL_SLAM_SLA"."SLI" ADD CONSTRAINT "PARENT_ID_FK" FOREIGN KEY ("PARENT_ID")
   REFERENCES "SCAL_SLAM_SLA"."SLI" ("ID");

update "SCAL_SLAM_SLA"."SLI" set "PARENT_ID"='sli_srv2_id' where "ID"='sli_srv1_id' ;

select * from "SCAL_SLAM_SLA"."SLI" where "ID"='sli_srv1_id' ;

你可能感兴趣的:(2009.11.11 备注)