[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-general
Subject:    [PEAR] Re: Another MDB2 portability question.
From:       Lorenzo Alberton <l.alberton () quipo ! it>
Date:       2008-03-26 22:57:10
Message-ID: 47EAD4C6.2030305 () quipo ! it
[Download RAW message or body]

Dmitri wrote:
> Is this type of sql UPDATE statement portable:
> 
> "UPDATE THREADS SET total_replies = (total_replies+1) WHERE id = 
> '$intThreadId'"
> 
> I mean, to increment a value of 'total_replies' field I am adding a 
> number to existing value of this field. It works with MySQL, but will it 
> work with other databases supported by MDB2?


yes

-- 
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


-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic