mysql select two prior to and one after NOW()
        Posted  
        
            by Flavius
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Flavius
        
        
        
        Published on 2010-03-13T23:09:02Z
        Indexed on 
            2010/03/13
            23:15 UTC
        
        
        Read the original article
        Hit count: 300
        
Hi
I have a table with a column event_time. How can I select two rows right before NOW() and the next one after NOW(), ordered by event_time?
Is is possible with a single query?
© Stack Overflow or respective owner