您好,欢迎来到知库网。
搜索
您的当前位置:首页MySQL字符串拼接

MySQL字符串拼接

来源:知库网

concat用于拼接字符串,语法很简单,直接上例子

select name, concat(round(w.population*100/t1.population), '%') from world w, (select population from world where name = 'Germany') t1 where w.continent = 'Europe'
在数字后面加上%

concat中字符串用双引号在某些垃圾数据库中居然出错(“%“)!

Copyright © 2019- zicool.com 版权所有 湘ICP备2023022495号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务