kito2
www.masteria.net
Hello,
I have been digging on the web to assign a foreign key to an existing column.
The example is: Having banned_id at account_bans, which should refers to id at players.
But I can't make it work on the server, just works on my localhost:
It is giving that error.
Can someone help?
Thanks!
I have been digging on the web to assign a foreign key to an existing column.
The example is: Having banned_id at account_bans, which should refers to id at players.
Code:
ALTER TABLE account_bans
ADD FOREIGN KEY (banned_id) REFERENCES Players(id);
But I can't make it work on the server, just works on my localhost:
Can someone help?
Thanks!