MySQL Forums
Forum List  »  Newbie

Re: How to query MySQL to get a table definition (column defs, constraint defs (pk, fk, uni...))
Posted by: philip antoniades
Date: August 19, 2004 02:04PM

Hi,

SHOW CREATE TABLE should give you all constraint and index information (after the column definitions, before the "TYPE=[MYISAM | INNODB | etc]"). If you are just looking for index information you can also use SHOW INDEX FROM.

cheers,

Philip

Options: ReplyQuote


Subject
Written By
Posted
Re: How to query MySQL to get a table definition (column defs, constraint defs (pk, fk, uni...))
August 19, 2004 02:04PM


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.