Oracle user created more than 6 months ago -


i trying find users created more 6 months ago. trying following must doing wrong. ideas? ... created_timestamp <= trunc(sysdate) - 180);

you can use this, letting oracle count months yu:

select * all_users created < add_months(sysdate, -6) 

you can add trunc sysdate avoid problems time, if need.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -