Re: One more MDB2 Portability question
| From: | Lorenzo Alberton | Date: | Mon, 07 Apr 2008 21:57:09 +0000 |
| Subject: | Re: One more MDB2 Portability question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28755@lists.php.net to get a copy of this message | ||
Dmitri wrote:
I often use the INSERT IGNORE in my scripts, but not that I want my scripts to be database independant, I need to know if this is a mysql-specific or is it a portable statement in MDB2 class. INSERT IGNORE is very convenient in case when you have a unique index and want to insert a new record but don't know in advance if it already has a row with the same value.http://www.xaprb.com/blog/2005/09/25/insert-if-not-exists-queries-in-mysql/ http://www.xaprb.com/blog/2006/02/21/flexible-insert-and-update-in-mysql/ HTH Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 25 Mb, 150 Mb di spazio web e molto di piщ! Registrati gratis: http://www.quipo.it