Find numeric subtype (smallint, int, etc) in oracle
问题 I added a table in oracle in oracle with fields - smallint int bigint But it internally store them as decimal(22,0) Is there any way to get individual subtype ( e.g. smallint ) instead of decimal. My usecase: I am using sqoop to copy data from oracle to hive. I need to check metadata of columns of oracle table and wrote own oracle to hive data type mapping. But I am always getting decimal(22,0) , so I need to map all these columns to decimal(22,0) in hive table even for smallint. 回答1: The