MySQL Forums
Forum List  »  Turkish

Değere göre sorgu
Posted by: kaizer soze
Date: April 09, 2017 06:15AM

Öncelikle merhabalar,
bir sorunum var yardımcı olabilir misin.

talepler("arac_id")
yukarıdaki bir sorgudan geliyor. Eğer talepler("arac_id") değeri 0 ise aşağıdaki sorguda V.arac_id değerini önemsemesin
eğer talepler("arac_id") değeri 0 değil ise aşağıdaki sorguda önemsesin.

Set kutu = sur.Execute("SELECT V.arac_id,V.saha_id,V.tip,V.havuz,S.saha_adi,S.saha_id from veriler V LEFT JOIN sahalar S ON V.saha_id=S.saha_id WHERE V.arac_id = ("&talepler("arac_id")&") and V.havuz=(1) and (V.tip = ("&yirmilik&") or V.tip = ("&kirklik&"))")

Options: ReplyQuote


Subject
Views
Written By
Posted
Değere göre sorgu
1827
April 09, 2017 06:15AM
915
April 26, 2017 09:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.