sql - Return only one row of a select that would return a set of rows -


i have table like:

create table mytab(   id integer primary key,   is_available boolean not null default true ); 

i need query returns first encountered row has is_available set false.

something like

select * mytab not is_available order id asc limit 1 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -