hsiehong
hsiehong

Reputation: 13

How do I use '#' to be a column name in SQL

I want to declare a table which has a column name 'A#'

but # is the comment notation in sql,

I have tried 'A#' , '[A#]' ,but it's still not work.

Is it available to use # in column name?

Upvotes: 1

Views: 48

Answers (1)

zealous
zealous

Reputation: 7503

try the following

select `A#` from table;

Upvotes: 1

Related Questions