本文介绍了如何在mysql中使用CONCAT fullname?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
选择RoomNo,IDNumber,姓氏,名字,中间名,课程,CONCAT(姓氏,',',名字,'',中间名)作为Fullname FROM tblresinformation
当我获得它显示的结果(Lastname,FirstnameMiddlename)。现在我想知道如何在Firstname和Middlename之间放置空格。结果应该是这样的(姓氏,名字中间名)。提前谢谢。
解决方案
Select RoomNo, IDNumber, Lastname, Firstname, Middlename, Course,CONCAT(Lastname,',',Firstname,'',Middlename) as Fullname FROM tblresinformation
When I get the result it display like this(Lastname,FirstnameMiddlename).Now i want to know how to put space between Firstname and Middlename. The result should be like this(Lastname,Firstname Middlename). Thank you in advance.
解决方案
这篇关于如何在mysql中使用CONCAT fullname?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!