Directly as it is you cannot use this timestamp. it will through an error 'Invalid Timestamp'.
you have to supply timestamp with dot.
sel cast (trim(cast('YYYY-MM-DD HH:MI:SS NNNNNN' as varchar(19))) || '.' ||substr(trim(cast('YYYY-MM-DD HH:MI:SS NNNNNN' as varchar(26))),21) as timestamp)
It should work.
Directly as it is you cannot use this timestamp. it will through an error 'Invalid Timestamp'.
you have to supply timestamp with dot.
sel cast (trim(cast('YYYY-MM-DD HH:MI:SS NNNNNN' as varchar(19))) || '.' ||substr(trim(cast('YYYY-MM-DD HH:MI:SS NNNNNN' as varchar(26))),21) as timestamp)
It should work.