What is the difference between NULL and NULL in MySQL?

Source: Internet
Author: User

What is the difference between NULL and NULL in MySQL?
1: When count () is used to count the number of records in a column, if the NULL value is used, the system will not automatically ignore it, but the NULL value will be counted. 2: null is null or is not null. The ifnull () function can be used in SQL statement functions for processing, use = ''or <>'' to process null characters. 3. Special Considerations for MySQL and timestamp data types, if you insert a NULL value to the column inserted for this data type, the displayed value is the current system time. When a null value is inserted, '2014-00-00 00:00:00 '4 is displayed: whether the null value is determined by is null or = ''depends on the actual service. 5: NULL value ('') does not occupy space. 6: NULL in MySQL actually occupies space.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.