简体   繁体   中英

db2 - How to query library (database) with period in name with sql?

Have an as400 library (database) named VSTAX.D (SYSTEM_TABLE_SCHEMA: "VSTAX.D").

When I try to query it using php odbc_connect I get the error:

select RTGST from VSTAX.D.VTSREG

[IBM][System i Access ODBC Driver][DB2 for i5/OS]
SQL0950 - Relational database VSTAX not in relational database directory.

I believe this is because of the period in the library name. Is there a way to escape this in the sql statement?

报价会为你处理这个,所以这应该工作:

select RTGST from "VSTAX.D".VTSREG

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM