in reply to Query using more than one array!
I think you want something (in SQL) like:
SQL has no concept of arrays and cannot synchronize between the values of your 'IN' clauses.SELECT name, last_name, reg_num, month, year FROM members WHERE (reg_num = '12345' AND month = '03') OR (reg_num = '98564' AND month = '01') OR (reg_num = '33234' AND month = '01') OR ... AND year='2009'
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Query using more than one array!
by Anonymous Monk on May 13, 2009 at 10:45 UTC | |
by afoken (Chancellor) on May 13, 2009 at 10:51 UTC | |
by Anonymous Monk on May 13, 2009 at 12:02 UTC | |
by CountZero (Bishop) on May 13, 2009 at 20:04 UTC | |
by Anonymous Monk on May 14, 2009 at 14:14 UTC | |
|