SELECTfunction_baseurl.idASidFROMfunction_baseurlWHERETRUE: the code of a colleague added a backslash to all the fields, making the code very ugly. what is the significance of this operation? SELECT
Function_baseurl
.
Id
AS
Id
FROM
Function_baseurl
WHERE TRUE
The previous sentence was a colleague's code. he added a backslash to all the fields, which made the code very ugly. does this mean anything?
Reply content:
SELECTFunction_baseurl
.Id
ASId
FROMFunction_baseurl
WHERE TRUE
The previous sentence was a colleague's code. he added a backslash to all the fields, which made the code very ugly. does this mean anything?
I personally think this is telling the compiler to wrap it! It doesn't make much sense. Personal opinions are for reference only
Is it 'or \
'Is the mysql escape character. as long as you do not use mysql reserved words or Chinese characters in the column name or table name, you do not need to escape other databases and also have reserved words. if you use them, you also need to escape them, only the escape characters are different.
\ Is the escape of field input content to ensure that the data will not cause the program, especially the database statements may cause fatal errors due to pollution caused by special characters. In the case of magic_quotes_gpc = On, if the input data contains single quotation marks ('), double quotation marks ("), backslash (), and NUL (NULL characters) and other characters will be added with a backslash. These escape characters are required.