About 265,000 results
Open links in new tab
  1. sql - Describe table structure - Stack Overflow

    @schmijos: actually it's implied, at best. "sql" does NOT mean "MS Sql Server" and it's irritating that so many people seem to think it's acceptable to use the generic term to specify a specific …

  2. How can I show the table structure in SQL Server query?

    Aug 18, 2013 · In SQL Server, you can use this query: USE Database_name SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='Table_Name'; And do not …

  3. sql - Copy table structure into new table - Stack Overflow

    Aug 3, 2009 · pg_dump dbname -s -t table_to_clone > /tmp/temp.sql Than sed or vim of the file to change the table name and related stuff. Often is enough to replace table_to_clone with …

  4. get basic SQL Server table structure information

    Feb 11, 2013 · Name and datatype: USE OurDatabaseName GO SELECT sc.name AS [Columne Name], st1.name AS [User Type], st2.name AS [Base Type] FROM dbo.syscolumns sc …

  5. database - PostgreSQL "DESCRIBE TABLE" - Stack Overflow

    In postgres \d is used to describe the table structure. e.g. \d schema_name.table_name. this command will provide you the basic info of table such as, columns, type and modifiers. If you …

  6. Export database schema into SQL file - Stack Overflow

    Is it possible in MS SQL Server 2008 to export database structure into a T-SQL file? I want to export not only tables schema but also primary keys, foreign keys, constraints, indexes, stored …

  7. sqlplus - Show the structure of the table in SQL - Stack Overflow

    Mar 31, 2013 · But, I am being asked to show the structure of the table. What does that mean, and what is the command? Here's my table below. SQL> select * from dept; DEPTNO DNAME …

  8. sql server - Create table (structure) from existing table - Stack …

    Aug 8, 2012 · If you want to copy the entire structure, you need to generate a Create Script of the table. You can use that script to create a new table with the same structure. You can then also …

  9. How to view SQL table structure in Oracle SQL developer

    Nov 22, 2019 · Try this:-- custom table information select schema_name(t.schema_id)+'.'+t.name as TableName, t.* from sys.tables t where t.name = 'MyTableName' -- table columns …

  10. sql server - Get structure of temp table (like generate sql script) …

    Jan 24, 2012 · In the Table Structure, the Table Name shows something like ‘#TempTable_____0000000004CB’. Actually, the total length of each and every Temp Table …

Refresh