C
|
cgphp 9/3/2011 |
$strSQL = "SELECT * FROM tablename1 WHERE .... UNION ALL SELECT * FROM tablename2 WHERE ....";
|
P
|
procheck author 9/3/2011 |
Hi Christian, |
C
|
cgphp 9/3/2011 |
I don't understand. Do you want to add a where clause ? whereAdd doesn't perform a UNION. The UNION operator is used to combine the result-set of two or more SELECT statements. What are the two tables ? |
P
|
procheck author 9/3/2011 |
From what I've read, any SQL can be replaced in BeforeQueryList. Maybe this is incorrect? |
C
|
cgphp 9/3/2011 |
$strSQL is executed by PHPrunner. You have only to set the query: $strSQL = "SELECT * FROM table_name WHERE ....."; |
P
|
procheck author 9/3/2011 |
I didn't realize it was that simple. It works now. |