MySQL: Trying to Drop Columns Named update and delete
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
MySQL: Trying to Drop Columns Named update and delete
I've recently transferred several Jet ("Access") databases to MySQL. I'm cleaning up the tables and have run into a problem. Some of the tables have columns named update and delete. Unfortunately with those names being SQL keywords, I get SQL syntax errors when I try to do anything with those columns.
I've looked throught the MySQL Reference Manual and Googled, but haven't found anything that seems to address my issue. I'm not sure I'm providing Google with very good search phrases either. All I really want to do is drop the update and delete columns from the table. Any pointers appreciated!
I don't know about MySQL, but in Microsoft SQL and Access, surrounding the column names with square brackets (e.g. select [update], [delete] from myTable) would work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.