Select a column with a keyword name

前端 未结 6 1024
感动是毒
感动是毒 2020-12-03 15:22

I have a table named \'test\'

It contains a column named \'AND\'

For that I use the following queries

insert into test values (\'a\',\'abc\')         


        
6条回答
  •  暖寄归人
    2020-12-03 16:16

    If you use select setement using "" it select a given sting so you have to give a column name like in mssql you have to use

    select [AND] from test;
    

    or in mysql syntex select AND from test;

提交回复
热议问题