1

我正在尝试为数据访问层编写单元测试用例,我们使用 Informix 数据库。由于 SQL 的 Informix 方言使用<databasename>@<server>:<owner>.<tablename>名称结构(数据库、服务器和所有者是可选的),内存中的数据库将支持这种表示法,或者是否有任何其他可用的转义字符的方法。

例子:

SELECT * FROM controldb@sphere_31:controller.control_directions AS cd
SELECT * FROM controldb:controller.control_directions AS cd
SELECT * FROM controldb@sphere_31:control_directions AS cd
SELECT * FROM controldb@control_directions AS cd
SELECT * FROM controller.control_directions AS cd
SELECT * FROM control_directions AS cd
4

0 回答 0