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

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -