Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Mysql Not

Mysql Not is useful when you a perform Not Operation in SQL. The SQL query returns you 1 and 0, when !o and !1 are selected in the select query.

Ads

Mysql Not

     

Mysql Not is useful when you a perform Not Operation in SQL. The SQL query returns you 1 and 0,  when !o and !1 are selected in the select query.

Understand with Example

The Tutorial illustrate an example from 'MySQL Not'. The Select Query !0 is used to return 1 and Query !1 returns you 0 respectively.

Query for Mysql not :

select !0 : The !0 in the select Query is used to return 1

 

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

Another Query for Mysql not :

select !1: The !1 in the select Query is used to return 0.

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

 

Advertisements

Share on Google+Share on Google+

Mysql Not

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

Advertisements

Ads
 

Discuss: Mysql Not  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads