![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear PostgreSQL users, How can I select all entries having a time of earlier than for example 11:00:00 from a column with data type TIMESTAMP, no matter what the date is? There has probably already been someone with this problem, but I really wasn't able to find anything here or in the web. Thanks in advance, Julia |
#3
| |||
| |||
|
|
Julia Jacobson wrote on 21.08.2010 19:32: Dear PostgreSQL users, How can I select all entries having a time of earlier than for example 11:00:00 from a column with data type TIMESTAMP, no matter what the date is? There has probably already been someone with this problem, but I really wasn't able to find anything here or in the web. Thanks in advance, Julia this should work: SELECT * FROM the_table_with_no_name WHERE cast(the_timestamp_column as time) <= TIME '11:00:00' Thomas |
#4
| |||
| |||
|
|
Yes, it does. Thanks a lot. this should work: SELECT * FROM the_table_with_no_name WHERE cast(the_timestamp_column as time) <= TIME '11:00:00' |
![]() |
| Thread Tools | |
| Display Modes | |
| |