若要编写在 SQL Anywhere 数据库和 Adaptive Server Enterprise 数据库上都能运行的查询,应遵循下面两条标准:
查询中的数据类型、表达式和搜索条件必须兼容。
语句本身的语法必须兼容。
本节假定数据类型、表达式和搜索条件都相互兼容。以下示例假设 quoted_identifier 选线设置为 OFF,这是 Adaptive Server Enterprise 的缺省设置,但不是 SQL Anywhere 的缺省设置。
SQL Anywhere 的 Transact-SQL 方言实现支持 Watcom SQL 方言中的大多数查询表达式语法,尽管 Adaptive Server Enterprise 并不支持某些 SQL 结构。在 Transact-SQL 查询中,SQL Anywhere 支持以下 SQL 结构:
下面总结了 SQL Anywhere 的 Transact-SQL 方言支持的语法:
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |