About 1,450,000 results
Open links in new tab
  1. sql - How do I list all the columns in a table? - Stack Overflow

    Oct 16, 2009 · use <database_name>; show columns in <table_name> like '<column_prefix>%'; Will let you list only the columns starting with the prefix specified. Omitting the angle brackets …

  2. How can I get column names from a table in SQL Server?

    Jun 28, 2009 · You can use the stored procedure sp_columns which would return information pertaining to all columns for a given table. More info can be found here …

  3. SQL server query to get the list of columns in a table along with …

    Mar 11, 2010 · I need to write a query on SQL server to get the list of columns in a particular table, its associated data types (with length) and if they are not null. And I have managed to do …

  4. SQL Query to Get Column Names From a Table - GeeksforGeeks

    Oct 10, 2021 · We will be using sys. columns to get the column names in a table. It is a system table and used for maintaining column information. It contains the following information about …

  5. List columns and attributes for every table in a SQL Server …

    Jun 26, 2009 · sys.all_columns offers a row for each column for every object in a database. Many of the columns are shared with sys.types, and we pull most of the metadata from this view, but …

  6. SQL Script To List All Columns of a Table in SQL Server

    Oct 7, 2014 · In this post, we will see different ways of retrieving all columns from a specific table in a database. It is a very simple script to get all columns for a table from a database. We can …

  7. Getting The List Of Column Names Of A Table In SQL Server

    Jun 20, 2019 · There are several ways to get the the list of column names of a table on a specific SQL Server database. In this article, I will go through these methods. 1. Information Schema …

  8. MySQL SHOW COLUMNS & DESCRIBE: Listing Columns in a Table

    Summary: in this tutorial, you will learn how to show the columns of a table by using the DESCRIBE statement and MySQL SHOW COLUMNS command. To show all columns of a …

  9. How to Retrieve Column Names From a Table in SQL - Baeldung

    Aug 4, 2024 · In this tutorial, we’ll explore several methods to retrieve column names in SQL. To begin with, we’ll cover the SHOW COLUMNS command, INFORMATION_SCHEMA, and the …

  10. sql server - How do I list or search all the column names in my ...

    You can use following query to list all columns or search columns across tables in a database. You can make use of information_schema views to list all objects in SQL Server 2005 or 2008 …

Refresh