For example, there are 2 fields in the database - code1, code2. Can be from 1 to 3 characters. I have a composite code, i.e. code1 + code2. And I cannot recover 2 codes from this line, i.e. I need to look for something like that -
WHERE (`code1``code2`) = $code1and2 How it's done? And if anyone knows how to do this using ActiveRecord Yii, it will be awesome.
where concat(code1, code2)=...- Mike