About 13,200,000 results
Open links in new tab
  1. How can I select from list of values in SQL Server

    Oct 14, 2009 · Is the important thing here to get a distinct list of those values, or to get that list of values into SQL? As @JeppeStigNielsen says, there are other ways to get distinct values from …

  2. sql - How to store a list in a column of a database table - Stack …

    Jul 26, 2015 · Finally, the list is basically atomic in that any time I wish to access the list, I will want to access the entire list rather than just a piece of it - so it seems silly to have to issue a …

  3. How do I create a comma-separated list using a SQL query?

    I want to show on a GUI a table of all resource names. In one cell in each row I would like to list out all of the applications (comma separated) of that resource. So the question is, what is the …

  4. SQL Server procedure declare a list - Stack Overflow

    Jan 16, 2014 · My SQL code is fairly simple. I'm trying to select some data from a database like this: SELECT * FROM DBTable WHERE id IN (1,2,5,7,10) I want to know how to declare the …

  5. select - SQL WHERE ID IN (id1, id2, ..., idn) - Stack Overflow

    Even SQL Server stops working after ~40k IN elements. According to MSDN: Including an extremely large number of values (many thousands) in an IN clause can consume resources …

  6. Optimal way to SET/DECLARE a list in SQL query?

    Dec 18, 2020 · I am writing a SQL Query based of user input, as these inputs will change on a daily basis. The goal of the query is to pull all data for only the ID's in the user-defined list. …

  7. Get all table names of a particular database by SQL query?

    Oct 12, 2010 · I have tested the query above with SQL Server Management Studio using an SQL Server database of mine and with MySQL Workbench using a MySQL database, and in both …

  8. sql - SELECT those not found in IN () list - Stack Overflow

    How do I find those values that do not find a match. I was simplifying in my example. My list of items has over 300 IDs, so using WHERE condition with a long list of OR would be …

  9. sql server - Query to list all stored procedures - Stack Overflow

    What query can return the names of all the stored procedures in a SQL Server database If the query could exclude system stored procedures, that would be even more helpful.

  10. sql server - T-SQL List Tables, Columns - Stack Overflow

    May 15, 2013 · In T-SQL (SQL Server 2000). How can I list all tables and columns in a database? Also, in a separate query is there a way to list all columns along with data type and constraints …