What is the role of the 'symbol after {code...} from when someone else's code is seen? Seeing others' code,
'Select'. $ param ['field']. 'from'. DBPRE. $ param ['table']
What is the role of the 'symbol after "from?
Reply content:
Seeing others' code,
'Select'. $ param ['field']. 'from'. DBPRE. $ param ['table']
What is the role of the 'symbol after "from?
All databases have similar settings, but mysql only uses. It is usually used to describe the database name, table name, and field name. For example
Select from table;
The first from is the field name, and the last table is also the field name, but it is also the mysql keyword, so an error will be reported during execution, so you should use
Select 'from 'from 'table'
We do not recommend that you use keywords as field names or table names for ease of reading. At the same time, we recommend that you use a pair of reverse quotation marks for database names, table names, and field names.
To avoid conflicts with keywords, it is to tell mysql that there is a common string, not a command.
Avoid conflicts with mysql keywords. Therefore, use this symbol to enclose it. Although it does not affect query, it is best to add