I need to use foreign keys for update and cascade, etc. ALTER TABLE topics ADD FOREIGN KEY(topic_by) REFERENCES users(user_id)
I have the following sql which I want to import with SQLBuddy. However I get an error telling that no database selected.
I am new to all this so looking for some help. So开发者_如何学运维rry if the question is really novice. I am learning all of the char, varchar, etc. Try BOOL.(It\'s an alias for TINYINT(1).)