Select today's (since midnight) timestamps only

前端 未结 5 1660
没有蜡笔的小新
没有蜡笔的小新 2020-12-09 14:24

I have a server with PostgreSQL 8.4 which is being rebooted every night at 01:00 (don\'t ask) and need to get a list of connected users (i.e. their timestamps are u.lo

5条回答
  •  一向
    一向 (楼主)
    2020-12-09 15:11

    select * from termin where DATE(dateTimeField) = '2015-11-17'
    

    This works well for me!

提交回复
热议问题