jam Posted August 7, 2005 Report Share Posted August 7, 2005 (edited) Man vajag atlasiit visus ierakstus tabulaa, kur kolonna own ir, piem. 5 un pec tam shajos ierakstos, kolonaa blabla un dradra atrast ierakstus 15 un 25 Ar where nevar vienaa uzrakstit, jo nekombinejas AND un OR. Kaut kaads hints bija, bet kaads? Edited August 7, 2005 by jam Link to comment Share on other sites More sharing options...
Robis Posted August 7, 2005 Report Share Posted August 7, 2005 Man vajag atlasiit visus ierakstus tabulaa, kur kolonna own ir, piem. 5 un pec tam shajos ierakstos, kolonaa blabla atrast ierakstu 15. Ar where nevar vienaa uzrakstit, jo nekombinejas vienkarhis AND un OR. 20459[/snapback] SELECT * FROM `tabula` WHERE `own`='5' AND `blabla`='15'; Link to comment Share on other sites More sharing options...
jam Posted August 7, 2005 Author Report Share Posted August 7, 2005 SELECT * FROM `tabula` WHERE `own`='5' AND `blabla`='15'; 20460[/snapback] Robi, tu esi atrs, bet es nepareizi uzdevu jautajumu. Izlaboju. Link to comment Share on other sites More sharing options...
jam Posted August 7, 2005 Author Report Share Posted August 7, 2005 aizdomājos pats. Jaliek iekavas, ja ir selects iekhs rezultaatim SELECT id FROM pr_kat WHERE own='0' AND (p_name_lv='aaa' OR p_name_ru=bbb' OR p_name_en='ccc') Link to comment Share on other sites More sharing options...
Recommended Posts