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

后端 未结 5 1909
渐次进展
渐次进展 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

    I've found a "fix"...

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

    alias.1
    --------
    result 1
    result 2
    

    just another dot in the begining...

    of course I don't like this solution... any other idea??

提交回复
热议问题