135-1821-9792

字符串拼接应用

需求:在一个字符串后面追加指定的json串(一般是json串)

CREATE PROCEDURE `update_add_white`(
in update_info VARCHAR(255)

COMMENT '增加白名单' 
BEGIN
set @update_whilte=(select left(cfg_value,LENGTH(cfg_value)-1) from common_config_bak where id=112);
set @updated_whilte=(select concat(@update_whilte,update_info));
update common_config_bak set cfg_value=@updated_whilte where id=112;
set @updated_info=(select cfg_value from common_config_bak where id=112);
select @updated_info 'updated_info';
END 

当前文章:字符串拼接应用
分享URL:http://kswsj.com/article/jhdosp.html

其他资讯



Copyright © 2009-2022 www.kswsj.com 成都快上网科技有限公司 版权所有 蜀ICP备19037934号