[1] I used to prefer plural names, but now I favor singular names because no naming headaches with the plural intricacies of the English language.
[1] I used to prefer plural names, but now I favor singular names because no naming headaches with the plural intricacies of the English language.
CREATE TABLE "user" (
id int PRIMARY KEY,
name varchar(50) NOT NULL
);
In fact, in this respect, SQL is much better than most languages with their `clazz` and `klass` and `func`.This solution was devised as a means to add keywords to new editions of the language without breaking code written in the old edition that named this stuff the same as the keyword (and with full interoperability between code from new editions and old editions)
So if some function in some Rust 2015 library was named async (a new keyword introduced in Rust 2018), you can call it like r#async() in newer versions
Such macros can be defined by libraries or the end user to provide special behavior.
val `val` = 1("user" is what got me in the habit of doing this unconditionally, to the point where SQL with bare table/column names looks weird to me now.)
Oh and yeah, every database brings its own opinion on what [quoting] `should` "look" 'like'.
Well yes hence “use quoted identifiers for maximum compatibility”. That does not mean “use quoted identifiers except when you don’t want to”.
CREATE USER user_name
[
{ FOR | FROM } LOGIN login_name
]
[ WITH <limited_options_list> [ ,... ] ]
[ ; ]As for how to name the "user" table, I've used "account". User is a human not a piece of data, Account is the data I have about their association with my service.
I probably should have gone with accounts and had a species column.
Just kidding. Then you'd eventually need extraterrestrials, sentient_ai, ghosts, and all kinds of extras.