简体   繁体   中英

Single quote in column name - how to select values

I have a table with a column name that includes a single quote ' . I do not manage this table so I cannot change the column name. How do I select a value from my query?

Example: $sql['This Column's Name']

接受双引号$ sql [“此列的名称”]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM