SQL statement that returns table and field names in MySQL
July 7, 2008 12:39 PM
Subscribe
Are there SQL statements that return table names and field names for given table names in MySQL Server (5.0.22)?
For example: SELECT name FROM dbo.sysobjects WHERE xtype = 'U' would return table names in SQL Server.
Is there a similar statement in MySQL and one that returns field names also?
posted by joemako to computers & internet (8 comments total)
2 users marked this as a favorite
describe [table name];
posted by unixrat at 12:47 PM on July 7 [1 favorite]