On 30/06/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm new to JDBC, and I just wanted to know how can I get the names of
> tables from a database that I have. Thanks in advance!

You want to use DatabaseMetaData. Something like:

Connection conn = DriverManager.getConnection("jdbc:sqlite:");
DatabaseMetaData meta = conn.getMetaData();
ResultSet rs = getTables(null, null, null, null);
while (rs.next())
    System.out.println(rs.getString("TABLE_NAME"));
rs.close();

d.

--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to