Click to See Complete Forum and Search --> : SQL - Retrieving field type


Dudsmack
11-19-2005, 09:56 AM
Using SQL querries how can I get the field type of a particular field?

NogDog
11-19-2005, 03:20 PM
Simplest way:

DESCRIBE table_name;

Dudsmack
11-19-2005, 06:25 PM
Thanks.

Is there any way to retrieve just the field type when i know the table name and the field name?

chazzy
11-19-2005, 06:34 PM
it depends on your database.

which one are you using?

Dudsmack
11-19-2005, 11:35 PM
mysql

NogDog
11-20-2005, 01:12 AM
DESCRIBE table_name column_name;