Re: Re: One more MDB2 Portability question

From: Date: Mon, 07 Apr 2008 22:26:35 +0000
Subject: Re: Re: One more MDB2 Portability question
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28756@lists.php.net to get a copy of this message
Lorenzo Alberton wrote:
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,
These links mention INSERT IGNORE, which is what I want to use, but I am not sure if this is mysql specific or not. Will INSERT IGNORE work with other databases? -- Open Source ALL content management with streaming video http://wiki.sharedlog.com

« previous php.pear.general (#28756) next »