View Single Post
Old 04.01.2006, 08:15   #20
SolarWind
Архивный участник
 
Join Date: Nov 2005
Posts: 7
Default

Quote:
Originally Posted by talmage
select char_id from user_ActiveSkill
where (s1 = s2) or (s1 = s3) or (s1 = s4) or (s1 = s5) or (s1 = s6) [etc]


Bad idea, remember, if there isint a skill there the value is 0 it will match.

Ie, if someone has no buffs

s1 = 0
s2 = 0

s1 and s2 are equal.

Also cron is a bad idea, hint: stored procedure that saves user_activeSkill
WHERE (s1 != NULL AND ((s1 = s2) or ....)
work finely, also automatically fills up cheaters list on site (relieves from superfluous bodymoving )
but nevertheless i shall look that is possible make through stored proc

i hate MSSQL

==
sorry 4 my terrable eng, my native lang is perl
SolarWind is offline