Zend Framework Part4
■ このスレッドは過去ログ倉庫に格納されています
0430426
2010/09/02(木) 14:41:33ID:bqeUspcnこんな感じのSQLを投げてます。
select colA1,colA2 (select count(colB3) from tableB where colB4 = :bind1 and colB5=bind2)as col3 from tableA where colA6 = :bind1 and colA7 = :bind2 and colA8 = 'hoge';
バインドを使用しているbind1とbind2の部分に直接値を記述すると
レコードは取得できるのですが、
プログラムからbind機構を使うとレコードを取得できません。
select colA1,colA2 (select count(colB3) from tableB as b where colB4 = a.colA6 and colB5=a.colA7)as col3 from tableA as a where colA6 = :bind1 and colA7 = :bind2 and colA8 = 'hoge';
とした場合はうまく動きました。
bind変数を複数個使っているのが原因でしょうか?
無知な私に救いを。
よろしくお願いします。
■ このスレッドは過去ログ倉庫に格納されています