今天批量修改一数据库表字段,用了字符串连接函数,MYSQL不像MS SQL那样简单用+,而了CONCAT函数
update images_tbl i INNER JOIN archives_tbl a ON a.title=i.titlemodel set i.download = CONCAT("/uploads/pdf/en/LED-Controller/",a.title,".pdf")
本文共 250 字,大约阅读时间需要 1 分钟。
今天批量修改一数据库表字段,用了字符串连接函数,MYSQL不像MS SQL那样简单用+,而了CONCAT函数
update images_tbl i INNER JOIN archives_tbl a ON a.title=i.titlemodel set i.download = CONCAT("/uploads/pdf/en/LED-Controller/",a.title,".pdf")
转载于:https://www.cnblogs.com/selenwoo/p/6137510.html