Re: Problem with table name with spaces
Posted by: Sarah Sproehnle
Date: July 27, 2005 03:23PM

This code worked for me, except that you need double-quotes (") around the table name. It shouldn't compile with single-quotes. I used:
ResultSet rsColumns = dataBaseMetaData.getColumns(null, null,"my pet",null);
while(rsColumns.next()) {
System.out.println(rsColumns.getString(4));
}

Sarah Sproehnle
MySQL AB
www.mysql.com

Options: ReplyQuote


Subject
Written By
Posted
Re: Problem with table name with spaces
July 27, 2005 03:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.