Re: MySQL Conditional Trigger

From: Date: Mon, 08 Dec 2008 22:09:50 +0000
Subject: Re: MySQL Conditional Trigger
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-45777@lists.php.net to get a copy of this message
anything compared to NULL is always false
Actually it's null. mysql> select false = null; +--------------+ | false = null | +--------------+
|         NULL |
+--------------+ 1 row in set (0.01 sec) mysql> select 1 = null; +----------+ | 1 = null | +----------+
|     NULL |
+----------+ 1 row in set (0.00 sec) mysql> select 2 = null; +----------+ | 2 = null | +----------+
|     NULL |
+----------+ 1 row in set (0.00 sec) unknown compared to anything is unknown. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45777) next »