Link Details

A set of useful Java snaps collected from real Java source codes like checking database type, getting database URL, checking if a table is exist, getting table column names, count table records

Posted by adevedo  |   Jan 03 2014 / 14:21

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.


User 187417 avatar

sproketboy replied ago:

I would be embarrassed to post garbage code like this. SELECT * FROM TABLE to decide if the table exists and catch and throw a general Exception? WTF. There's a method getMetaData() in JDBC. Look it up and learn something.

Reply 0 votes

Recommended Links

Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone