473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Get a specific Database Information.

dmjpro
2,476 2GB
Some times a tables wrapped with " or sometimes with ` character.
Could I get those information from DatabaseMetadata.
I could get the information whether the table wrapped with " from DatabaseMetaData.supportsMixedCaseQuotedIdentifier s.
But whether it's with ` how could I get it?
One more thing if I do DatabaseMetaData.supportsMixedCaseQuotedIdentifier s with PostgreSQL the it returns true so i do wrap it with " but the thing is if i do the same for MySQL then i get true too but if I wrap with " then SQL grammer erros come.
So how could I get those information what Nebeans does well.
What Netbeans does that with Java APIs if NetBeans can then why not we?

One more thing in MySQL .what happens some data in date field as '0000-00-00' when Java APIs finds this type of data in Date field then it flashes an error .... the data '0000-00-00' can't be represented as java.sql.Date.

Please help me out.

Debasis Jana.
Apr 24 '08 #1
1 1294
dmjpro
2,476 2GB
Some times a tables wrapped with " or sometimes with ` character.
Could I get those information from DatabaseMetadata.
I could get the information whether the table wrapped with " from DatabaseMetaData.supportsMixedCaseQuotedIdentifier s.
But whether it's with ` how could I get it?
One more thing if I do DatabaseMetaData.supportsMixedCaseQuotedIdentifier s with PostgreSQL the it returns true so i do wrap it with " but the thing is if i do the same for MySQL then i get true too but if I wrap with " then SQL grammer erros come.
So how could I get those information what Nebeans does well.
What Netbeans does that with Java APIs if NetBeans can then why not we?

One more thing in MySQL .what happens some data in date field as '0000-00-00' when Java APIs finds this type of data in Date field then it flashes an error .... the data '0000-00-00' can't be represented as java.sql.Date.

Please help me out.

Debasis Jana.

Guys I did that using DatabaseMetaData.getIndentifierQuoteString.

Debasis Jana
Apr 25 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Stefan Engstr?m | last post by:
My mysql is responding strangely to a select when I try to ask for particular columns instead of everything. Here is an example which is querying a database of a few thousand elements in each...
16
by: Daniel Tonks | last post by:
First, please excuse the fact that I'm a complete MySQL newbie. My site used forum software that I wrote myself (in Perl) which, up until now, has used flat files. This worked fine, however...
2
by: serge | last post by:
Can you create an UPDATE TRIGGER and use some type of code to figure out which SP just updated the current table? If not how can i achieve what i want? I tried to run SQL Profiler and i don't...
8
by: james | last post by:
I am trying to use Filestream to read a file ( .DAT) that contains values in HEX that I want to convert to text. I know the different offset addresses for each portion of the data I am trying to...
2
by: Timbo | last post by:
Hi there, I’m not used to working in VB and I think this situation calls for excactly that. I use Access 97 SR-2. My first table is a table containing all the Tickets I got. The field ”Ticket”...
14
by: John T Ingato | last post by:
I have a contacts table with name address and such but are missing all phone numbers in the phone number fields. I have just received an updated customer list in Excel and have imported into a new...
7
by: lmnorms1 | last post by:
Hello, I am trying to update an access database record date field that matches a specific date. The code is not working. Anyone have any advice? Here is the code: Dim gConnString As String =...
12
by: Bob Jones | last post by:
I have an odd business requirement and I think that the implementation is not correct in the terms of OOP development. Any help on the concepts would be very appreciated! We currently have a...
1
by: printline | last post by:
Hello all Hopefully someone can help me with this issue. I have some information from a database which i show in a table. In this table i have various columns that are filled out with some of...
1
by: johnyjj2 | last post by:
Hello! I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.