hi,
Is it possible to use Common Table Expressions (WITH) and a CActiveRecord?
Like:
WITH t1 as (UPDATE counter SET num=num+1 returning num) INSERT INTO t2 (sometextvalue, counter_num) VALUES ('some text', (SELECT num FROM t1));
Link to WITH: WITH
Thanks.