Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 12, 2019 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2540089374cc8dd4b81634304fac9522 to your computer and use it in GitHub Desktop.
Save parzibyte/2540089374cc8dd4b81634304fac9522 to your computer and use it in GitHub Desktop.
ALTER TABLE tu_tabla
ADD COLUMN [definición de columna],
ADD CONSTRAINT `fk_relacion` FOREIGN KEY (columna_recién_creada)
REFERENCES la_otra_tabla(columnaEnLaOtraTabla);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment