Bootstrap

SQL语句——字段拼接查询

将字段content和字段task_lv做字符串拼接查询,并且将字段task_lv转成char类型

SELECT
task_id,
title,
CONCAT(content,CAST(task_lv AS CHAR)) content,
add_diamond,
add_coin,
add_exp,
flag,
task_lv
FROM
user_task_upgraded
WHERE
player_id = 1

;