Re: How to check if the database and tables exist through connector.NET
Posted by: Fernando Gonzalez
Date: October 19, 2012 11:09AM

Hi,

A good approach would be to use the information_schema database (which is supported since MySql 5.0, see http://dev.mysql.com/doc/refman/5.0/en/information-schema.html)

For example to read all the column data (data type, length, precision, etc.) from the table test2, you will use the table 'columns':

select * from information_schema.columns where table_schema = 'test2'

Options: ReplyQuote


Subject
Written By
Posted
Re: How to check if the database and tables exist through connector.NET
October 19, 2012 11:09AM


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.