About 1,550,000 results
Open links in new tab
  1. SQL data stored in two lines - Stack Overflow

    May 12, 2017 · I have some data that stored as two lines: Example is the address: 100 Blvd apt 100 ==> this is how it reads in the database. when I copy and paste the address then it is in two lines: 100 Blvd A...

  2. SQL data returned on 2 lines instead of 1 - Stack Overflow

    May 2, 2017 · I can't seem to make my query return the desired data all on 1 line. It does return all the desired data, but on 2 seperate lines. The full query is below: SELECT DISTINCT case when sh1.

  3. database - show two lines in one SQL - Stack Overflow

    Feb 12, 2018 · I have those three tables in my DataBase called Equipe (teams), Match(Match), Jouer (Played), and I'm trying to show the result of the league using this: SELECT DISTINCT M.ID_MATCH, NOM_EQUIPE,

  4. Possible benefits of storing multiple values in one field of one row ...

    Jan 13, 2016 · If you need to store separate values in a single field of a single row then there are more appropriate means of doing that: XML or JSON. These are parseable formats (XML / JSON) and XML can even be indexed. But ideally this data would be stored in properly-typed fields so that it can be truly useful.

  5. How To Manage Line Breaks in SQL Server - SQL and IT Tutorials

    Dec 11, 2023 · Transact-SQL scripts to manage line breaks in SQL Server strings stored in columns or variables. In other words how to remove them or to insert them to streamline the data integration processes. For example, after the export of a SQL query from SSMS to an Excel document, some lines are split in two different parts.

  6. Can you store multi-line strings into SQL database?

    Mar 26, 2021 · If the field in the database is a text, medium text or long text field type then yes, the value can be stored as raw text with line breaks or even html. Then all you have to do is parse it on output to display however you need it.

  7. Understanding how SQL Server stores data in data files

    Jul 6, 2016 · As you know, data in tables is stored in row and column format at the logical level, but physically it stores data in data pages which are allocated from the data files of the database. In this tip I will show how pages are allocated to data files and what happens when there are multiple data files for a SQL Server database.

    Missing:

    • Lines

    Must include:

  8. Combining multiple lines from one table into one row of a view

    May 23, 2008 · SQL 2005 provides this rather convenient method to convert rows to columns (and UNPIVOT to do the reverse). As an example, let's use your CTE as the source. Also, convert the two values you...

  9. combining multiple records on one line SQL - Databases

    Jun 12, 2012 · In very general terms (not to any specific syntax) if you are using a scripting tool you could do a loop: Dim strnames. strnames = "Lopez, " select * from names_table where last name = ‘Lopez’. Do While not EOF. names = names & first name & ", " Next Record. Loop.

  10. SQL string value spanning multiple lines in query

    Sep 9, 2014 · What database server (sql/oracle/mysql)? You should be able to span over multiple lines all you want as long as you adhere to the character limit in the column's datatype (ie: varchar(200) ). Try using single quotes, that might make a difference. This works for me: update table set mycolumn = 'hello world, my name is carlos. goodbye.' where id = 1;