title: Databasemetadata getting column details
body: <p>I use databasemetadata to find the column size. But getColumns(null,null,"table_name",null) returns an empty resultset. I checked for the table by querying it and the table is present. Where is the error? Thanks in advance!  </p>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>Connection connection = getConnection(); //getting the connection -   
  Statement st = connection.createStatement();  
  ResultSet rs = st.executeQuery("select * from table_name");  
  while (rs.next()) { 
     System.out.println(rs.getString("column_name")); //The values get printed 
  }
  ResultSet rsColumns = null;
  DatabaseMetaData meta = connection.getMetaData();
  rsColumns = meta.getColumns(null, null, "table_name",null);     
  System.out.println(rsColumns.next()); // I get false here which means resultset is empty. But I dunno why.
  </code></pre>