I need to use foreign keys for updating and cascade, etc.
ALTER TABLE topics ADD FOREIGN KEY(topic_by) REFERENCES users(user_id) ON DELETE RESTRICT ON UPDATE CASCADE;
but I cannot create foreign keys in SQL Buddy.
How to do it?
Have you tried this:
ALTER TABLE topics ADD CONSTRAINT topic_by FOREIGN KEY(user) REFERENCES users(user_id) ON DELETE RESTRICT ON UPDATE CASCADE
Source: https://habr.com/ru/post/898356/More articles:Run Flash in WPF - c #Selenium Script For IE - internet-explorerGenerate an object model from RelaxNG schema using RNGOM - how to get started? - javaDoes Facebook support OAuth 2.0? - oauthMysql From enumeration to tinyint problems - mysqlHow can I prevent a column from allowing null and allowing a column from Null to not allow null - sql-server-2008Azure - How to use local storage blob - windowsAnalysis of time complexity algorithms - algorithmSum of three variables: strange behavior - javascriptHow to convert the WordOpenXML property to the System.IO.Packaging.Package package? - c #All Articles