473,385 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How To: RETRIEVE FIELD NAMES from a TABLE???

What MySQL command would I use if I wanted it to return to me the
names of every field in one of the database's tables?

Thank in advance.
Jul 20 '05 #1
4 2298
"Alan Mailer" <cl**********@earthlink.net> wrote in message
What MySQL command would I use if I wanted it to return to me the
names of every field in one of the database's tables?


Try the "describe mytable" command.

Or you can select from the system table in the mysql database.
Jul 20 '05 #2
"Alan Mailer" <cl**********@earthlink.net> wrote in message
What MySQL command would I use if I wanted it to return to me the
names of every field in one of the database's tables?


Try the "describe mytable" command.

Or you can select from the system table in the mysql database.
Jul 20 '05 #3

"Siemel Naran" <Si*********@REMOVE.att.net> wrote in message
news:gW********************@bgtnsc04-news.ops.worldnet.att.net...
"Alan Mailer" <cl**********@earthlink.net> wrote in message
What MySQL command would I use if I wanted it to return to me the
names of every field in one of the database's tables?


Try the "describe mytable" command.

Or you can select from the system table in the mysql database.


Or you can try 'SHOW FIELDS FROM TABLE'
Jul 20 '05 #4

"Siemel Naran" <Si*********@REMOVE.att.net> wrote in message
news:gW********************@bgtnsc04-news.ops.worldnet.att.net...
"Alan Mailer" <cl**********@earthlink.net> wrote in message
What MySQL command would I use if I wanted it to return to me the
names of every field in one of the database's tables?


Try the "describe mytable" command.

Or you can select from the system table in the mysql database.


Or you can try 'SHOW FIELDS FROM TABLE'
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Don Leverton | last post by:
Hi Folks, I have been given a CD with approx 130 .xls files (bean-counters!) that I would like to import and merge to ONE table (tblTradeshow). The XL files are *similarly*, but not...
2
by: John T. McCraw | last post by:
How can I retrieve just the column names from an Access table. I don't need the data, just the column names.
2
by: SueA | last post by:
Can anyone help me with the code to retrieve the name of the table that a control on a form (that's built off a query) refers to? For instance: qryMfrsAndBrands is based on the tables:...
13
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end...
4
by: Bob | last post by:
Hi all, I've got a table that I've imported and it has junk at the top of the table, so after import I run a delete query to remove the junk lines then I'm left with the field names I want for...
8
by: RP | last post by:
I want to retrieve column names (Exact field names) of a table. How to do that?
1
by: dtshedd | last post by:
SQL newbie here so appreciate your patience and help Windows XP Home, Microsoft Access 2002, ActivePerl 820 (corresponds to Perl version 5.8.8), Abyss Web Server X1 (v 2.4) An archived post on...
21
by: giandeo | last post by:
Hello Experts. Is it possible to retrieve the value from a populated pull down menu from a database and then use that value to access the same database to get the related fields. Example: ...
4
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.