Get the type of the field from a table