About 6,550,000 results
Open links in new tab
  1. SQL Array: Using, creating, and inserting arrays in SQL.

    Apr 8, 2025 · SQL Arrays are crucial for storing and organising data sets in one column, effectively managing numerous values. This is particularly useful in complex data types. This blog explains SQL Arrays, Control, and Search Arrays in SQL, improving or enhancing your database management abilities. Read on!

  2. Working With Arrays | SQL Tutorial Documentation on data.world

    The ARRAY command allows you to create an array from a group of values. The values can be field values, calculated values, literals, or a combination thereof. The only requirement is that all the values are of the same data type. The following is an example of creating an array using the city_array table and literals:

  3. Creating a variable array in sql - Stack Overflow

    May 2, 2018 · a possible solution is to put the array in a VARCHAR: Id_list VARCHAR2(500)= '123,456,789'; SELECT * FROM Table WHERE INSTR(Id_list,Id) > 0 Regards!

  4. Complete Guide to Array operations in SQL with Examples

    Feb 27, 2023 · Guide to Array in SQL. Here we discuss an introduction to Array in SQL, how to create and insert array with examples for better understanding.

  5. SQL 'ARRAY' Data Type: A Comprehensive Tutorial - Reintech

    Sep 30, 2023 · In SQL, you can declare an ARRAY by specifying the type of its elements followed by square brackets([]). The following example creates an ARRAY of integers: CREATE TABLE my_table ( id serial PRIMARY KEY, numbers INTEGER[] );

  6. How to implement array-like functionality in SQL Server - SQL

    Jan 16, 2018 · In this article, we'll show how to use a table variable instead of an array, the function STRING_SPLIT function, how to work with older versions of SQL Server.

  7. Insert Array of values into columns of the table in SQL Server

    Jun 8, 2017 · I have an array (1,2,3,4;5,6,7,8;9,10,11,12;13,14,15,16;) I want to insert this array of values into the table like Column1 | Column2 | Column3 | Column4 -----...

  8. Arrays and Lists in SQL Server (Short version) - Sommarskog

    The answer is that it does work: just look at this: CREATE TABLE #test (id int NOT NULL, col varchar(23) NOT NULL) INSERT #test(id, col) VALUES(1, 'Something'), (2, '1,2,3,4'), (3, 'Anything') DECLARE @list varchar(23) = '1,2,3,4' SELECT id FROM #test WHERE col IN (@list)

  9. Is it possible to declare an array data type column? SQL

    Jun 5, 2015 · Some databases might support arrays or similar constructs. In standard SQL, there's one data type designed for holding multiple values - the table.

  10. Harnessing the Power of Arrays: A Beginner's Guide to Using Arrays

    Jun 1, 2024 · In this article, we’ve explored the power of arrays in SQL and how to use them as tables for efficient data manipulation. By leveraging array operations, you can write more performant and maintainable queries, making your database workloads faster and more scalable.

  11. Some results have been removed
Refresh