This command should insert a record whose one of fields is millisecond, which gets by a sub query, into a table but returns an error. What is the problem?
insert into table1 values ( select trunc( (to_date('2019-11-26 01:00:00', 'YYYY-MM-DD HH24:MI:SS') - to_date('1970-01-01', 'YYYY-MM-DD')) * power(60, 2) * 24 * power(10, 3)) from dual, 0, 0, 0);
Error report -
SQL Error:
ORA-00936: missing expression
00936. 00000 - "missing expression"
* 60*60*24*1000- would be simpler in my eyes.