본문으로 건너뛰기

timestamp를 조건으로 조회


select * from log_transaction where trantime = to_timestamp('201109291539258580','yyyymmddhh24missff')

select * from log_transaction where trantime = timestamp '2011-09-29 15:39:25.85800'

로그에서 보면 ? 파라미터 값이 2021-01-01 00:00:00(timestamp) 이런식으 되어있었다.
그걸 sqldeveloper에서 조회 하려고 하니까 잘 안되서 구글링
위에 처럼 어떤분이 잘 정리 해주셔서 그대로 해보니까 잘 되드라..
timestamp '2021-01-01 00:00:00' 이런식으로 하면 OK