Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
concatenate 2 string columns in data set query
gourav
<p>select comp_nm, (complc_addr1+" "+complc_city) as address from comp</p><p> </p><p> </p><p>the query outputs the numeric value instead of joining two strings.</p>
Find more posts tagged with
Comments
micajblock
<p>What database? '+' is not the concatenation symbol in SQL. Usually it is '||'. Google the syntax for your specific database.</p>
gourav
<p>I changed + to || but no got the required output </p><p>I am using mysql database</p>
micajblock
<p>So you did not Google like I suggested. I did. For MySQL you need to use a function.</p><p> </p><p><a data-ipb='nomediaparse' href='
http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_concat'>http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_concat</a></p>
;
gourav
<p>thank u.</p><p> </p>