|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Set Options???
In MySQL:
When using this code: ( SELECT t1.oid, MAX(t2.score) + MAX(t1.score) + MAX(t3.score) + MAX(t4.score) + MAX(t5.score) + MAX(t6.score) as score FROM whitetailtypical t1, whitetailnontypical t2, blacktailnontypical t3, blacktailtypical t4, mulenontypical t5, muletypical t6 WHERE t1.name=t2.name GROUP BY t1.name ORDER BY score DESC; ) it tells me to use the code SET OPTION SQL_BIG_SELECTS=1. Where would I put it in the code at? |
|
#2
|
|||
|
|||
|
RE: Set Options???
wherever you are trying to run that first query at....
|
|
#3
|
|||
|
|||
|
RE: Set Options???
Like just put it in the PHP code in a different query on the same page?
|
|
#4
|
|||
|
|||
|
RE: Set Options???
or like this?
SET OPTION SQL_BIG_SELECTS=1; SELECT t1.oid, MAX(t2.score) + MAX(t1.score) + MAX(t3.score) + MAX(t4.score) + MAX(t5.score) + MAX(t6.score) as score FROM whitetailtypical t1, whitetailnontypical t2, blacktailnontypical t3, blacktailtypical t4, mulenontypical t5, muletypical t6 WHERE t1.name=t2.name GROUP BY t1.name ORDER BY score DESC; |
|
#5
|
|||
|
|||
|
RE: Set Options???
?
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Set Options??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|