How does mysql modify the collation of an table table?

mysql> select `books`.*, `csessioninfo`.`user_info` from `books` inner join `csessioninfo` on `books`.`openid` = `csessioninfo`.`open_id`
    -> ;
ERROR 1267 (HY000): Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation "="

the books table reported an error. How can I change the collation to utf8mb4_unicode_ci??

Mar.19,2021

if you are modifying the character set of a table, use this to try
alter table books convert to character set utf8mb4_unicode_ci;

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-1b3ab5c-2c23c.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-1b3ab5c-2c23c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?