fieldtype - How to return field type from MySQL query? -


simple question: how can return field type of mysql table. know describe or show column want return single parameter. e.g.:

select fieldtype(mycol) mytable # should return int or integer example 

you can use

show fields tablename field ='nameoffield' 

this return result in format of

field   type    null    key     default      

Comments

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -