SQL 随笔

ALTER TABLE [tablec] ADD CONSTRAINT [FK_tablec_tablea] FOREIGN KEY ( [Type] ) REFERENCES [tablea] ( [Type] ) create unique index ind_un on test(id, Name) create table tb (a int, b int, constraint cons1 unique(a,b))

你可能感兴趣的:(SQL 随笔)