Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Mysql-example MySQL Boolean Value

Related Tutorials


 
 

Share on Google+Share on Google+

MySQL Boolean Value

Advertisement
MySQl Boolean Value is used to display the Boolean type status of the field.

MySQL Boolean Value

     

MySQl Boolean Value is used to display the Boolean type status of the field.

Understand with Example

The Tutorial illustrate an example from 'MySQL Boolean Value'. To understand the example execute a query 'SHOW TABLE STATUS LIKE "%bool%", which display the Boolean type status of the field which display below:

This example illustrates how to find the boolean type status of the table.

Query

SHOW TABLE STATUS LIKE "%bool%";

Output

+------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-------
----+----------------+---------------------+-------------+------------+-----------+----------+----------------+-------
---------------+
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_f
ree | Auto_increment | Create_time         | Update_time | Check_time | Collation | Checksum | Create_options | Commen
t              |
+------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-------
----+----------------+---------------------+-------------+------------+-----------+----------+----------------+-------
---------------+
| bool | InnoDB | 10      | Compact    | 0    | 0              | 16384       | 0               | 0            | 0
    | 1              | 2009-01-20 13:06:29 |             |            | binary    | NULL     |                | InnoDB
 free: 3072 kB |
+------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-------
----+----------------+---------------------+-------------+------------+-----------+----------+----------------+-------
---------------+
1 row in set (0.02 sec)
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  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.

Posted on: February 4, 2009

Related Tutorials

Discuss: MySQL Boolean Value   View All Comments

Post your Comment


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