Subject | Re: [Firebird-Java] Re: How do I use quoted fields? |
---|---|
Author | Marczisovszky Daniel |
Post date | 2002-04-18T19:31:33Z |
r> --- In Firebird-Java@y..., Marczisovszky Daniel <marczi@d...> wrote:
r> you should use quotes.
r> ResultSet rs = st.executeQuery("select * from \"tblTemp\"");
r> Or you can use DatabaseMetaData.getIdentifierQuoteString() value.
I have a dialect 3 database. Although I don't specify it on
connecting, but I'm not using " at all. Which dialect does the driver
use when I connect to a database?
Best wishes,
daniel
>> SA> How do I use quoted fields in Firebird?r> Sorry, but this is possibly wrong. if you have dialect 3 database,
>>
>> SA> in ISQL you can do that by: SQL> select * from "tblTemp"
>>
>> SA> How can you do that from inside java app?
>>
>> SA> ResultSet rs = st.executeQuery("select * from ???;");
>>
>> ResultSet rs = st.executeQuery("select * from tblTemp");
r> you should use quotes.
r> ResultSet rs = st.executeQuery("select * from \"tblTemp\"");
r> Or you can use DatabaseMetaData.getIdentifierQuoteString() value.
I have a dialect 3 database. Although I don't specify it on
connecting, but I'm not using " at all. Which dialect does the driver
use when I connect to a database?
Best wishes,
daniel