使用firebird数据库在SQL中包含空格的别名

时间:2017-10-09 11:31:32

标签: sql firebird firebird2.5

我有一个SQL语句,我希望有一个带空格的别名。例如:

[INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'style' of undefined", source:  (1)
[INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'style' of undefined", source:  (1)
[INFO:CONSOLE(22)] "Start Referrer is >>> ", source: link without FTP (22)
[INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'style' of undefined", source:  (1)
[INFO:CONSOLE(5)] "The key "target-densitydpi" is not supported.", source: link with FTP (5)
[INFO:CONSOLE(30)] "referer ", source: link with FTP (30)
[INFO:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'style' of undefined", source:  (1)

我尝试了不同的语法,但失败了。

select name as User name from users;

数据库版本: Firebird 2.5

请帮帮我

1 个答案:

答案 0 :(得分:3)

我建议你简单地停止想要空间 - 在任何数据库中处理分隔标识符都很麻烦。

但是,正如documentation所解释的那样,Firebird并不一定支持它们:

  
      
  • 仅限方言3中提供了分隔标识符。有关方言的更多详细信息,请参阅SQL Dialect
  •