Jump to content
php.lv forumi

mysql selects


jam

Recommended Posts

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 by jam
Link to comment
Share on other sites

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

×
×
  • Create New...