-- how-to compare dates with different formats
-- how-to convert timestamp and date to bigint
-- how-to use if else struct
SELECT CASE
when
cast (to_char( (current_timestamp + interval '0 days' ) , 'yyyymmddHHMMSS') as bigint)=
cast (to_char(NOW() , 'yyyymmddHHMMSS') as bigint)
then
'are equal'
else
'are NOT equal'
END
;
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!