How does mysql filter empty data? I use is & nbsp; not & nbsp; null. how does it not filter empty tit data? SELECT & nbsp; * & nbsp; FROM & nbsp; 'parts' & nbsp; WHERE & nbsp; partsId = '0 mysql how to filter empty data
Why can't I use is not null?
Filter data whose tit is empty.
------ Solution --------------------
SELECT * FROM 'parts' WHERE partsId = '000000' and length (trim (LocationID) <> 0
------ Solution --------------------
Replace the join of Table A and Table B with inner join.
------ Solution --------------------
Is not null or <>''
------ Solution --------------------
The null value is generated because the AB table is in the full match state, and the table does not exist. some B naturally use null to fill in the blanks.
LZ lists the IDs used for matching A and B, and returns A separate query for each table.
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