Skip to content

Instantly share code, notes, and snippets.

@ArCiGo
Last active May 19, 2019 21:37
Show Gist options
  • Save ArCiGo/6744676e45eab4955c0f35cf4e59d246 to your computer and use it in GitHub Desktop.
Save ArCiGo/6744676e45eab4955c0f35cf4e59d246 to your computer and use it in GitHub Desktop.
/** Adding constraint to an existing table **/
ALTER TABLE "Order" ADD CONSTRAINT FK_ORDER_REFERENCE_CUSTOMER FOREIGN KEY(CustomerId) REFERENCES Customer(Id);
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment