KillerBean Posted May 2, 2006 Report Share Posted May 2, 2006 Kjipa query's: $query = "SELECT aaa, bee FROM table WHERE aaa<=100 AND bee='viens' ASC"; tiek atlasiiti ieraxti kur bee ailee ir 'viens' a ja vajag atlasiit taadus kur bee ailee ir 'viens' vai 'divi' $query = "SELECT aaa, bee FROM table WHERE aaa<=100 AND bee='viens' OR bee='divi' ASC"; un jautaajums ir par to OR lietoshanu vai vinja buus pareiza??! vai neiznaak, ka ir: a) aaa<=100 && bee='viens' b) bee='divi' Link to comment Share on other sites More sharing options...
Delfins Posted May 2, 2006 Report Share Posted May 2, 2006 Lieto iekavas: A AND (B OR C) Link to comment Share on other sites More sharing options...
john.brown Posted May 2, 2006 Report Share Posted May 2, 2006 (edited) $query = "SELECT aaa, bee FROM table WHERE aaa<=100 AND bee IN('viens','divi') ASC"; Edited May 2, 2006 by john.brown Link to comment Share on other sites More sharing options...
KillerBean Posted May 2, 2006 Author Report Share Posted May 2, 2006 tnx, nezinaaju tikai to knifu vai queryaa to arii var lietot ;) Link to comment Share on other sites More sharing options...
Robis Posted May 3, 2006 Report Share Posted May 3, 2006 tā ir baigā fiška jeb zivs :) Link to comment Share on other sites More sharing options...
Recommended Posts