Solved

Field descriptions

Posted on 2006-07-06
3
920 Views
Last Modified: 2012-06-21
I am trying without success to get the field description from the table fields in a MySQL database into a C# program.

If someone would be so kind as to give me the "dummies" step by step version. I've Googled for it but got nothing I could understand. It seems like it should be something fairly simple. Please help.
0
Comment
Question by:Padriac
3 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 500 total points
ID: 17050584
If you are using mysql 5

You can go to

Information_Schema.COLUMNS and the COLUMN_COMMENT field

otherwise you can extract it from the show create table - and pull it from there
0
 
LVL 30

Expert Comment

by:todd_farmer
ID: 17056119
If you have MySQL 4.1, you can use the SHOW FULL COLUMNS FROM tablename syntax:

http://dev.mysql.com/doc/refman/4.1/en/show-columns.html

If you have 5.0, you can use the information_schema as Raynard7 said.
0
 

Author Comment

by:Padriac
ID: 17057834
Thanks Raynard7! That was just what I needed to get where I wanted. With your answer I was able to put together exactly the code I needed. Thanks again.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now