Hi,
Of course I can use just a query method, problem is that I use this functionality if few places and it would be nice to wrap it in something convinient.
For now I prepared insertMulti method in descendant class. It is called many times with single row data and finally with no data to execute query.
Maybe such solution will be fine in Zend_Db_Table.
With this attitude you can execute one 'big' insert or many inserts depending on rdbms.
Thanks, buy
From: Isaak Malik <isooik@gmail.com>
Sent: 10 listopada 2008 20:53
To: fw-db@lists.zend.com
Subject: Re: [fw-db] Re: Zend_Db_Adapter_Abstract::insert
There is no built-in support for this (yet) but why not simply use a manual query for now:
$db->query("INSERT INTO table1 VALUES (1,'a'), (2, 'b')");
However, I'm not sure whether this syntax is the same with most RDBMS
--
Isaak Malik
Web Developer
2008年11月12日星期三
订阅:
博文评论 (Atom)
没有评论:
发表评论