Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 12, 2019 18:33
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/fdbf8059b2d89621d3191bdb54075d70 to your computer and use it in GitHub Desktop.
Save parzibyte/fdbf8059b2d89621d3191bdb54075d70 to your computer and use it in GitHub Desktop.
ALTER TABLE ventas
ADD COLUMN idMedico int(200) NOT NULL default 1,
ADD CONSTRAINT `fk_id_medico` FOREIGN KEY (idMedico)
REFERENCES medicos (id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment