0

Why not is sololearnšŸ˜?

In MySQL (on xampp) columns and table name's are writing using single quote and you will get error if don't put it.

15th Nov 2021, 6:26 PM
Noname
Noname - avatar
6 Answers
+ 1
Hi, Noname! My English bad too) But in mysql, quotes are needed if there is a space in the column name, as in your example.
22nd Nov 2021, 8:14 PM
Borovoi Evgenii
Borovoi Evgenii - avatar
0
Professor Albus for exemple if we want to insert one column we must write: INSERT INTO 'table name'(_,_) VALUES(_,_); but here we could do INSERT INTO table name(_,_) VALUES (_,_) ; without quote sorry if you can't understand i speak english too bad
18th Nov 2021, 5:53 AM
Noname
Noname - avatar
0
Borovoi Evgenii I have seen something like that : ALTER TABLE 'pma_bookmark' CHANGE 'id'......... There is no space between name but there are quote And in sololearn they don't put nothing
23rd Nov 2021, 10:25 AM
Noname
Noname - avatar
0
Noname MariaDB 10 is installed on my own server, and quotes are not used in the syntax there either.šŸ¤”
23rd Nov 2021, 10:41 AM
Borovoi Evgenii
Borovoi Evgenii - avatar
0
Borovoi Evgenii I don't know why are not used in MariaDB but if you try to do something with Sql without quote you'll get syntax error;
23rd Nov 2021, 10:39 PM
Noname
Noname - avatar
0
Sorry guys I have made a mistake Thanks for allšŸ˜”šŸ‘Š
4th Dec 2021, 5:35 PM
Noname
Noname - avatar