I need to add a new column in one of my tables, but this column in turn is a foreign key from another table but I do not know how to do it ...
I tried this but evidently gave me an error:
ALTER TABLE ordenes ADD COLUMN ticket varchar(50) FOREIGN KEY (ticket) REFERENCES tickets(ticket)