简体   繁体   中英

how to access columns if they are named after numbers

My column names in my table are just numbers from 0-20, where each column is corresponding to a number however, when I try

    select 0 from table

I get output of only zeroes in my column, how can I select a column without changing the column names?

select "0" from table

Try select [0] from table. Your way is replicating zeros for all entries in the table

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