謝晒的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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment