Could you provide implementation of stored function to get current systimestamp as milliseconds.
Something I can use like
select current_tim
AFAIK, there is no direct way for achieving this (other than manually writing a long-winded SQL function).
Why do you need this specifically?
You could use a stored Java function and then use the System.getCurrentMillis() that Java provides to return you a value in Milliseconds from 1.1.1970 to now.