select * from x where cond a, cond b sorgusundaeğer en az bir sonuç geliyorsa select * from x where cond a, cond bhiç sonuç gelmiyorsaselect * from x where cond aşeklinde ifadeyi MySql için Sql sorgusunda nasıl yazarız?
select * from x where cond a, cond b sorgusunda
eğer en az bir sonuç geliyorsa
select * from x where cond a, cond b
hiç sonuç gelmiyorsa
select * from x where cond a
şeklinde ifadeyi MySql için Sql sorgusunda nasıl yazarız?
0
gezegen olan pluton (
06.12.20)
select * from x
where ( cond a and cond b )
or cond a
0
nahtoderfahrung
(
06.12.20)
aşağıdaki gibi bir şey olmalı;
IF EXISTS(sorgu1)
THEN
sorgu1
ELSE
sorgu2
END IF;
0
select * from x
where 1 = case
when (select count(*) from x where cond a and cond b) > 0 then cond a and cond b
else cond a
end
şurada örnek yaptım,
www.shorturl.at
0
aziz dostum jack
(
06.12.20)