Mysql: is it true that the entire composite index is invalid if the composite index contains columns with null values?

see the saying on the Internet: in mysql, if the composite index contains columns with null values, the whole composite index is invalid

Is this sentence correct?

Mar.13,2021

No, according to the mysql document, spatial index cannot save null,. Others can: https://dev.mysql.com/doc/ref.

.

Index Class Index Type Stores NULL VALUES Permits Multiple NULL Values IS NULL Scan Type IS NOT NULL Scan Type
Primary key BTREE No No A No No A
Unique BTREE Yes Yes Index Index
Key BTREE Yes Yes Index Index
FULLTEXT N > A Yes Yes Table Table
SPATIAL A No No A

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35406-2b2e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35406-2b2e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?