Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.java.* > Newsgroup comp.lang.java.databases

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2006, 11:30 AM
none
Guest
 
Posts: n/a
Default Problem with table name

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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 08-13-2006, 01:32 AM
Lee Fesperman
Guest
 
Posts: n/a
Default Re: Problem with table name

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)
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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



All times are GMT. The time now is 09:27 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.