Zend DB クエリが最後の行を表すための正しい構文を教えてください (and (xxx or xxx)
...
where
id = 1241487470
and (contract=0 or is_work IS NOT NULL)
...
私はこれで立ち往生しています:
->where('id = ?', 1241487470)
->where(...)
これは論理的で機能しているように見えました。そういや。
->where('id = ?', 1241487470)
->where('contract= ? or is_work IS NOT NULL)
これもうまくいくようで、zend dbエスケープメントを保持します
->where('id = ?', 1241487470);
->where('(contract = ?', 0);
->orWhere('is_work IS NOT NULL)');