I have a table containing "%" in the column heading, and this causes a problem when I do a select statement on that column (see below for more details). Does anyone know how I can select this column without preserving the original column header?
Example:
Table1 name ref_no tot_sales %Phone ------------------------------- Alan 1 1 100% amy 2 1 50% ken 3 4 30%
Script:
Select %Phone From Table1
Error message:
Incorrect syntax near phone
sql sql-server tsql
Jin yong
source share