In PostgreSQL ,user is a reserved word.
If you want to create a user table, you may encounter some problems!
As you can see, there is no way to create a user table .
You might say, I just don't have a double quote "" to enclose the uppercase table name, yes!
When I use "" to enclose the name of the table in uppercase, the problem is solved!
But, it 's not over yet!
What if I didn't create a user table , but something else like the U-seless table?
You will see that the useless table can be created, except that the table name is automatically converted to lowercase .
This should be followed by the standard SQL rules.
If I want to query the user table , how do I write its table name?
You will find that the results are different!
So here's the conclusion that you can draw:
When the table name of the table you want to create needs to be capitalized, enclose it in double quotation marks.
In the future as long as it is related to the operation of the table, you have to use "" to enclose the table name , note that the English state double quotation marks !
Reprint Please specify source: http://www.cnblogs.com/ficow/p/6612484.html
The table name raised by PostgreSQL when creating the user table uppercase and double quotation marks issues