I have an update sql statement and I have to run this sql script through linux script.. What will be the shell script to do such a task?
update inventories
set reserveddate is null,
purchasedid is null,
where purchased is null
and (TO_CHAR(SYSTIMESTAMP,'HH24') - TO_CHAR(reserveddate ,'HH24')) > 1;