Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

CONCAT_WS() concat function in mysql

SELECT concat_ws("||",concat("ZIP: ",client_zip), concat("Phone: ",client_phone)) 
FROM `user_contacts` ORDER BY client_id DESC LIMIT 1

O/P:
ZIP: 334455||Phone: 2233443344
 
PREVIOUS NEXT
Tagged: #concat #function #mysql
ADD COMMENT
Topic
Name
7+2 =