謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
Monday, June 3, 2013
[MySQL] 字串相加 (CONCAT)
SELECT CONCAT(fname,' ',lname) AS fullname FROM user
CONCAT可以將參數全部串起來,如果我們要顯示user的全名,且中間要有空格,就可以用上述的例子。
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment