|
|||
|
Hi!
I have a problem to access tables in an Informix Database. Table names are something like that : informix.pv_tvvte When I try a "SELECT informix.pv_tvvte.numero_vente FROM informix.pv_tvvte WHERE informix.pv_tvvte.numero_vente=#value#", (I use ibatis and spring) I get a syntax error exception (SQLException "Bad SQL Grammar"). If I replace dot with "_" in the name, I get a "Table Not Found" Exception. How could I escape the dot in the tables names ? TIA Arnaud |
|
|
||||
|
||||
|
|
|
|||
|
none wrote:
> > Hi! > > I have a problem to access tables in an Informix Database. Table names > are something like that : > informix.pv_tvvte > > When I try a "SELECT informix.pv_tvvte.numero_vente FROM > informix.pv_tvvte WHERE informix.pv_tvvte.numero_vente=#value#", (I use > ibatis and spring) I get a syntax error exception (SQLException "Bad SQL > Grammar"). > > How could I escape the dot in the tables names ? The normal solution is to use name delimiters. They surround the name and allow you to use names that contain embedded special characters and are reserved words. For SQL92, you use double quotes ("); can't tell you what Informix takes. -- Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com) ================================================== ============ * The Ultimate DBMS is here! * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com) |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: SAS table locked - concurrent access by ETL Informatica and | Mikhail Konovalov | Newsgroup comp.soft-sys.sas | 1 | 11-21-2011 04:05 PM |
| Re: Big Table / Little Table Update | Sigurd Hermansen | Newsgroup comp.soft-sys.sas | 0 | 01-06-2005 11:51 PM |
| Re: Big Table / Little Table Update | nospam@HOWLES.COM (Howard Schreier | Newsgroup comp.soft-sys.sas | 0 | 12-29-2004 01:38 AM |
| Re: Big Table / Little Table Update | James, Steve | Newsgroup comp.soft-sys.sas | 0 | 12-28-2004 10:15 PM |