by yen223 · 2y ago · 0 comments
CREATE TABLE CamelCase(...)
SELECT * FROM "CamelCase";
will fail with "CamelCase" not being a table.That's because the CREATE TABLE statement creates a table named "camelcase", not "CamelCase", despite what you might assume from the query.
No bit seriously, thanks for sharing. I'll always do lower case table names from now on.
You can quote the table name in the create statement to get the camelcase table name. Just remember to quote in both creation and usage or neither, is a good rule of thumb