Can I create tables PEOPLE and people in SQL? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I create tables PEOPLE and people in SQL?

SQL is case insensitive, so is it possible?

20th Mar 2019, 11:03 AM
Urmi
Urmi - avatar
2 Answers
+ 1
SQL converts your table name to uppercase by default. (Some SQLs have also configuration file for that) Nevertheless, if you need to create a table with name in lowercase use double quotes. For, example CREATE TABLE PEOPLE( ... ); CREATE TABLE "people"( ... ); In second case you have to use quotes for every reference to the table e.g SELECT * FROM "people";
20th Mar 2019, 11:44 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
+ 1
Got it! Thank you!
20th Mar 2019, 11:54 AM
Urmi
Urmi - avatar