Mysql
 sql >> Database >  >> RDS >> Mysql

Seleziona le righe tra una riga specificata e una riga con condizioni particolari

SELECT version, compatible
    FROM YourTable
    WHERE version >= '0.1.3'
        AND version < (SELECT version
                           FROM YourTable
                           WHERE version > '0.1.3'
                               AND compatible = 'false'
                           ORDER BY version
                           LIMIT 1)
    ORDER BY version