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
Post a Comment