I'm trying to query a table and get back 'something' from which I can extract the table's column names and types.
At the moment I'm using meta data (Java) but need at least one record in my ResultSet to be able to get the meta data in the first place.
So...
1. How can I select just one record from a table without knowing any details about that table or any records in it? (something like 'SELECT TOP 1' for MS SQL Server)
Or/and...
2. Is it possible to get table information without retrieving a record (what if the table is empty for example?).
Thanks.
At the moment I'm using meta data (Java) but need at least one record in my ResultSet to be able to get the meta data in the first place.
So...
1. How can I select just one record from a table without knowing any details about that table or any records in it? (something like 'SELECT TOP 1' for MS SQL Server)
Or/and...
2. Is it possible to get table information without retrieving a record (what if the table is empty for example?).
Thanks.