I need a query in sql to get total columns in a table.Can anybody help?
标签:
sql-server
相关问题
- sql execution latency when assign to a variable
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
- SQL to Parse a Key-Value String
相关文章
- Entity Framework 4.3.1 failing to create (/open) a
- Code for inserting data into SQL Server database u
- Delete Every Alternate Row in SQL
- Linux based PHP install connecting to MsSQL Server
- SQL Azure Reset autoincrement
- How do we alias a Sql Server instance name used in
- Is recursion good in SQL Server?
- How can I convert a OLE Automation Date value to a
This code show a list of tables with a number of columns present in that table for a database.
If you want to know the number of column for a particular table in a database then simply use
where
clause e.g.where Table_Name='name_your_table'
The below query will display all the tables and corresponding column count in a database schema