Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database sql extraction

Status
Not open for further replies.

cyclopsvs

Programmer
Joined
Feb 21, 2007
Messages
7
Location
NL
Hello all,

I recently started working on a project where one of the first steps is to extract the complete sql querie from which the database is designed.

I was wondering is there is a simple method to do this so i can see al the primary keys and foreign keys ?

thanks in advance for your help

richard mendes
 
depends on which database you're using -- DESCRIBE tablename, SHOW CREATE TABLE tablename, etc.

or, you could use the INFORMATION_SCHEMA views



r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top