I have two queries. I expect both insert same value: 429496729600, but one of them fail because of error:
db=> update order_detail set amount = 400*1024*1024*1024 where id = 11;
ERROR: integer out of range
db=> update order_detail set amount = 429496729600 where id = 11;
UPDATE 1
Why the error occur for first query?
UPD
Forget to specify that type of amount is bigint and the
400*1024*1024*1024 == 429496729600