Get the Table fileds in SQL Server/Oracle

In SQL Server you can retreive the field names as shown below,

SELECT name
  • FROM syscolumns
  • WHERE id = (SELECT id FROM sysobjects WHERE name='Table_Name')
  • Comments

    Popular posts from this blog

    SQL SERVER – TRIM() Function – UDF TRIM()

    Delete duplicate records from a Table in SQL Server