3

I learned about this:

desc survey.bb_data

through SO, but this only tells you what the field names are but doesn't show constraints, etc.

Maybe I'm being naive about this but shouldn't there be more data (like FK's, etc)?

2 Answers 2

8
SHOW CREATE TABLE survey.bb_data

That should show all field types and foreign key constraints.

1

I recommend using the following query:

SHOW COLUMNS IN survey.bb_data
1
  • do you mean survey.bb_data Mar 12, 2020 at 20:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.