Yes, i did. `tablename.:field:name` doesn't work. 'tablename.:field:name' doesn't work. '`tablename`.`:field:name`' works sometimes, but not always :(
The fieldname is ':field:name' without table prefix. -----Ursprüngliche Nachricht----- Von: Bruno Friedmann [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. Dezember 2006 14:46 An: Aycko Maerzke Betreff: Re: [fw-general] Problem with Zend_DB an PDO Aycko Maerzke wrote: > Hello together, > > i use the Zend_Db class for my sql. queries I have to use field names > like ':tablename:filedname'. This execute an exception, because a bind > parameter is required. > > I tried an query like this: > > $db->query("SELECT `:tablename:filedname` FROM `table`"); > > Is gives any solution to use field names like this with Zend_DB? > > > > Best regards ... > > > Have you try something like this `tablename.fielname` it works nice here .. -- Bruno Friedmann <[EMAIL PROTECTED]> Ioda-Net Sàrl c/o RFV, H. Vauclair SA Rue de l'Avenir 12 2800 Delémont - Switzerland Tél : ++41 32 435 7171 Fax : ++41 32 435 7172 gsm : ++41 78 802 6760 www.ioda-net.ch Solutions informatiques et internet, coaching et relooking www.cfcel.com Centre de formation et de coaching en ligne
