INSERT INTO Calculations(TOTAL_DAYS_NUMBER)
select DTE_CHARGE - (
select min(TIME_REGISTERED)
from (
select TIME_REGISTERED from SHIFTING_RECORDS where id=5
UNION ALL
select TIME_REGISTERED from MEAL_RECORDS where id=5
UNION ALL
SELECT TIME_REGISTERED FROM REGISTRATION WHERE id=5
)
)
from REGISTRATION
where id=5;
它给了我输出 19 3:28:47.812000000这对我来说是不可能插入到具有整数数据类型的列中的,我只对获取前两位数字感兴趣,即 19。我应该怎么做?