Need help in mysql for selecting row there are any value is null
.
table design given
id userid left right
8 yusuf1@gmail.com yusuf1 yusuf4
9 yusuf2@gmail.com yusuf1 NULL
10 yusuf4@gmail.com NULL NULL
11 yusuf10@gamil.com NULL NULL
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in D:\xampp\htdocs\mlm\all\join.php on line 325
select * from tree where left is NULL or right is NULL limit 1
Error
SQL query: Documentation
select * from tree where left is NULL or right is NULL limit 1
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'is NULL or right is NULL limit 1' at line 1