Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Find out if a table exists
Rahul Mahindrakar
Ranch Hand
Posts: 1871
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
How can i find out whether a table exists. If a tabel exists then i want to add a record to it. If it does not i want to create a new table and then add a record to it.
Regds.
Rahul.
Carl Trusiak
Sheriff
Posts: 3341
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can use the methods available in the DatabaseMetaData class.
It's in the java.sql package.
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Apu Nahasapeemapetilon
Ranch Hand
Posts: 51
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
is this a
java
question or a DB (database) question?
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
hibernateTemplate.saveOrUpdate(...) issue
Tricky Update Statement
How can I set my own table row key for Trinidad's table tag?
How can I set my own table row key for Trinidad's table tag?
CHECK IF A TABLE ALREADY EXISTS
More...