Share on Google+Share on Google+

MySQL Not Records

Advertisement
MySQL Not is used to return the set of record opposite to the values.

MySQL Not Records

     

MySQL Not is used to return the set of record opposite to the values.

Understand with Example

The Tutorial illustrate an example from MySQL Not. To understand and elaborate the example we use select !0 query that return you opposed to the values. The below query return you 1 when we select !0 is performed.

.Query for Mysql not :

mysql> select !0;
+----+
| !0 |
+----+
|  1 |
+----+
1 row in set (0.00 sec)

Another Query for Mysql not :

The select !1 query is performed to return 0 as records.

mysql> select !1;
+----+
| !1 |
+----+
|  0 |
+----+
1 row in set (0.01 sec)

 

Advertisements

Posted on: February 4, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Comments:0