Fill in the Mysql splicing field into the new field

seniors, I want to splice the existing fields and fill them in the new fields, such as
original table

< table > < thead > < tr > < th > id < / th > < th > name < / th > < th > date < / th > < th > record_id < / th > < / tr > < / thead > < tbody > < tr > < td > 1 < / td > < td > A < / td > < td > 20180101 < / td > < td > null < / td > < / tr > < tr > < td > 2 < / td > < td > B < / td > < td > 20180102 < / td > < td > null < / td > < / tr > < tr > < td > 3 < / td > < td > C < / td > < td > 20180103 < / td > < td > null < / td > < / tr > < / tbody > < / table >

Update table:

< table > < thead > < tr > < th > id < / th > < th > name < / th > < th > date < / th > < th > record_id < / th > < / tr > < / thead > < tbody > < tr > < td > 1 < / td > < td > A < / td > < td > 20180101 < / td > < td > Amur20180101-001 < / td > < / tr > < tr > < td > 2 < / td > < td > B < / td > < td > 20180102 < / td > < td > BMI 20180102-002 < / td > < / tr > < tr > < td > 3 < / td > < td > C < / td > < td > 20180103 < / td > < td > Cmur20180103-003 < / td > < / tr > < / tbody > < / table >

where id is the self-incrementing primary key. The goal is to concatenate the name-date-id into the new field record_id.
at the same time, enter new name and date each time. For example, insert name="D", date="20180104", to get
4 | D | 20180104 | Dmai 20180104004

ask for advice, thank you.

Apr.20,2022

select CONCAT ('Dirty answer' |', '2018 University07and08') FROM DUAL
select CONCAT (name,' |', date) FROM TABLE


BEGIN;
INSERT INTO table ( name , date) VALUES ('code,' 20190114');
UPDATE table SET record_id = CONCAT ( name ,'-', date,'-', @ identity) WHERE id = @ identity;
COMMIT;

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