sqlite: alias column name can't contains a dot “.”

后端 未结 5 1887
渐次进展
渐次进展 2021-01-01 05:54

(sorry for my poor english)

If you try this select operation over a sqlite database:

SELECT column AS \'alias 1\' FROM table;

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 06:07

    If you're using the SQLite 3 then the following query works just fine with various types used for the Alias column names.

    See the result below the query:

    select '1' as 'my.Col1', '2' as "my.Col2", '3' as [my.Col3], '4' as [my Col4] , '5' as 'my Col5' 
    

    enter image description here

提交回复
热议问题