Yes, that's the most simple way I can think of.

Am 02.04.2014 09:09, schrieb checkmail:
>  
> 
> Is there another way like this:
> 
> update tappl_status set afpool = iif(afpool = 0,1,0) where kommplatz =
> :kommpl_in;
> 
>  
> 
> *Von:*firebird-support@yahoogroups.com
> [mailto:firebird-support@yahoogroups.com] *Im Auftrag von *checkmail
> *Gesendet:* Mittwoch, 2. April 2014 09:07
> *An:* firebird-support@yahoogroups.com
> *Betreff:* [firebird-support] toggle betweenn 0 and 1
> 
>  
> 
>  
> 
> Hello,
> 
>  
> 
> is there a simple way to toggle between 0 and 1?
> 
>  
> 
> Update table set column NOT column where id = :id?
> 
>  
> 
> If column = 1 – then set to 0, else set to 1.
> 
>  
> 
> Thank you.
> 
>  
> 
> Best regards
> 
>  
> 
> Olaf
> 
> & nbsp;
> 
>  
> 
> 

-- 
Mit freundlichen Grüßen,

Thomas Beckmann
Diplom-Informatiker


Wielandstraße 14c • 23558 Lübeck
Tel +49 (22 25) 91 34 - 545 • Fax +49 (22 25) 91 34 - 604
Mail thomas.beckm...@assfinet.de <mailto:thomas.beckm...@assfinet.de>

ASSFINET-Logo

*ASSFINET Dienstleistungs-GmbH*
Max-Planck-Straße 14 • 53501 Grafschaft bei Bonn
i...@assfinet.de <mailto:i...@assfinet.de> • www.assfinet.de
<http://www.assfinet.de/>

Geschäftsführer: Dipl. Wirtschaftsinformatiker Marc Rindermann
Registergericht Koblenz HRB 23331

Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der
richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist
nicht gestattet.



------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    firebird-support-dig...@yahoogroups.com 
    firebird-support-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    firebird-support-unsubscr...@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Reply via email to