Does sqlite support the sql function \"if\" in the select statement?
for example
select if( length( a ) > 4 , a , \' \') as b from foo >
select if( length( a ) > 4 , a , \' \') as b from foo
See the case expression.
A CASE expression serves a role similar to IF-THEN-ELSE in other programming languages.
For your example
select case when length(a) > 4 then a else '' end as b from foo