oracle has 'DESCRIBE' to get all the details of the table like wise does t/sql has any thing

后端 未结 3 1095
清酒与你
清酒与你 2021-01-16 04:56

oracle has \'DESCRIBE\' to get all the details of the table like wise does t/sql has any thing.

3条回答
  •  终归单人心
    2021-01-16 05:36

    SELECT * FROM sysobjects WHERE parent_obj = (SELECT id FROM sysobjects WHERE name = 'table_name') AND xtype='PK'
    

    will show table details.

    SELECT * FROM sys.Tables
    

    will list all tables

    There is no describe equivalent. you might find this searching for MSSQL instead of T/SQL. Most people talking about Transact SQL are talking about stored procedures.

提交回复
热议问题