[sql] SQL statement to get column type