softlab Posted January 29, 2018 Posted January 29, 2018 Hi. I wrote some SQL statements, referencing table names in uppercase. When my java code tries to execute them, an error is send, telling that table name does not exist. I also saw that in phpMyAdmin table names are in lowercase. Is there a way to reference them in uppercase (or in a not case sensible way)? Thanks
Krydos Posted January 29, 2018 Posted January 29, 2018 Mysql itself isn't case sensitive. Windows is not case sensitive so mysql on windows isn't case sensitive. Linux is case sensitive so mysql on linux is case sensitive. A table named TEST is different from test on linux. I just always do everything in lowercase to make it consistent. Mysql has a hard enough time without me yelling at it in all caps.
softlab Posted January 29, 2018 Author Posted January 29, 2018 Ok, thanks. I renamed all the tables in uppercase and now it's ok.
michaeltim Posted February 8, 2018 Posted February 8, 2018 I strongly recommend to always use lowercase names.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now