About 2,070,000 results
Open links in new tab
  1. How to concatenate in SQL Server - Stack Overflow

    May 3, 2015 · To concatenate strings in SQL Server you can simply use the . Note that if one of the substrings is null then the entire concatenated string will become null as well. therefor, use if you …

  2. sql - Concatenate text from multiple rows into a single text string ...

    Consider a database table holding names, with three rows: Peter Paul Mary Is there an easy way to turn this into a single string of Peter, Paul, Mary?

  3. How to use GROUP BY to concatenate strings in SQL Server?

    13 SQL Server 2005 and later allow you to create your own custom aggregate functions, including for things like concatenation- see the sample at the bottom of the linked article.

  4. mysql - What does SQL Select symbol || mean? - Stack Overflow

    Apr 29, 2014 · 6 It is a concat statement. It will concatenate the two strings. Here is a helpful post! What is the difference between "||" operator and concat function in Oracle?

  5. SQL Server: combining multiple rows into one row

    This is an old question, but as of the release of Microsoft SQL Server 2017 you can now use the STRING_AGG() function which is much like the GROUP_CONCAT function in MySQL.

  6. SQL Server: Best way to concatenate multiple columns?

    I am trying to concatenate multiple columns in a query in SQL Server 11.00.3393. I tried the new function CONCAT() but it's not working when I use more than two columns. So I wonder if that's the...

  7. How to concatenate many rows with same id in sql?

    How to concatenate many rows with same id in sql? Asked 9 years, 10 months ago Modified 2 years, 9 months ago Viewed 157k times

  8. sql - Concatenate Numbers and Strings to Format Numbers - Stack …

    0 Another option is to use || (String concatenation) operator (SQL Server 2025/Azure SQL DB) which can handle string/number conversions implicitly.

  9. String concatenation in MySQL - Stack Overflow

    Feb 2, 2018 · SELECT CONCAT_WS(' ', first_name, last_name) from test.student That said, if you want to treat || as a string concatenation operator (same as CONCAT()) rather than as a synonym for OR …

  10. sql - Concatenate multiple result rows of one column into one, group …

    Concatenate multiple result rows of one column into one, group by another column [duplicate] Asked 12 years, 8 months ago Modified 2 years, 9 months ago Viewed 381k times