详解mysql函数拼接查询concat函数的使用方法

本文主要为大家带来一篇mysql函数拼接查询concat函数的使用方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧,希望能帮助到大家。

如下所示:

//查询表managefee_managefee的年year 和 month ,用concat函数拼成year-month。例如将2017和1 拼成2017-01。.  select CONCAT(a.year,'-',if(a.month<p>相关推荐:<br></p><p><a href="http://www.php.cn/js-tutorial-380906.html" target="_self">JavaScript连接两个或多个数组的方法concat()</a></p><p><a href="http://www.php.cn/js-tutorial-380906.html" target="_self">JavaScript连接两个或多个数组的方法concat()</a></p><p><a href="http://www.php.cn/js-tutorial-380906.html" target="_self">JavaScript连接两个或多个数组的方法concat()</a></p>

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享