SQL to return first two columns of a table

前端 未结 8 598
猫巷女王i
猫巷女王i 2020-12-10 05:04

Is there any SQL lingo to return JUST the first two columns of a table WITHOUT knowing the field names?

S

8条回答
  •  无人及你
    2020-12-10 05:53

    You can query the sysobject of the table to find out the first two column then dynamically generate the SQL statement you need.

提交回复
热议问题