How to assign values to multiple variables in the function of MySQL

use the select statement to assign a value to a variable:

    SELECT 
        parent_id INTO sParentId, catalog_name INTO sPathName 
    FROM 
        t_knowledge_catalog 
    WHERE 
        catalog_id = sChildId;

error report:

undeclared variable:catalog_name
Mar.20,2021

SELECT 
    parent_id, catalog_name INTO sParentId,sPathName 
FROM 
    t_knowledge_catalog 
WHERE 
    catalog_id = sChildId;

select column name 1, column name 2. Column name N into parameter 1, parameter 2. Parameter N

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