使用concat函数进行拼接:示例如下: select id,username,concat( id, '-' , username) as idName from user; 转载于:https://www.cnblogs.com/kingsonfu/p/9915099.html