dbTalk Databases Forums  

Show Constraint_type

mailing.database.myodbc mailing.database.myodbc


Discuss Show Constraint_type in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nguyen, Phong
 
Posts: n/a

Default Show Constraint_type - 08-05-2005 , 07:29 AM






Good morning All,

What Mysql command show us CONSTRAINT_TYPE value as UNIQUE, PRIMARY KEY, or
FOREIGN KEY of and schema?

Thanks.................Nguyen.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
SGreen@unimin.com
 
Posts: n/a

Default Re: Show Constraint_type - 08-05-2005 , 07:46 AM






--=_alternative 0045D49E85257054_=
Content-Type: text/plain; charset="US-ASCII"

"Nguyen, Phong" <Phong.Nguyen (AT) disa (DOT) mil> wrote on 08/05/2005 08:26:58 AM:

Quote:
Good morning All,

What Mysql command show us CONSTRAINT_TYPE value as UNIQUE, PRIMARY KEY,
or
FOREIGN KEY of and schema?

Thanks.................Nguyen.

I believe you are looking for the SHOW CREATE TABLE command. If I am using
the MySQL CLI, I prefer the output formatted with the \G terminator
instead of the ; terminator like this

SHOW CREATE TABLE tablename\G

Shawn Green
Database Administrator
Unimin Corporation - Spruce Pine
--=_alternative 0045D49E85257054_=--


Reply With Quote
  #3  
Old   
Gleb Paharenko
 
Posts: n/a

Default Re: Show Constraint_type - 08-05-2005 , 08:17 AM



Hello.


I think you should use the SHOW statements:
http://dev.mysql.com/doc/mysql/en/sh...ate-table.html
http://dev.mysql.com/doc/mysql/en/show-index.html



"Nguyen, Phong" <Phong.Nguyen (AT) disa (DOT) mil> wrote:
Quote:
Good morning All,

What Mysql command show us CONSTRAINT_TYPE value as UNIQUE, PRIMARY KEY, or
FOREIGN KEY of and schema?

Thanks.................Nguyen.



--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Gleb Paharenko
/ /|_/ / // /\ \/ /_/ / /__ Gleb.Paharenko (AT) ensita (DOT) net
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET
<___/ www.mysql.com




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.