1
strUserQuery = request.querystring("UserQuery")
strQueryToBeExecuted = "Select * from (" & strUserQuery & ") where rownum < 501"

查询运行时如何自动打印表的标题?我尝试打印第一行,但查询结果中没有列名。

我也尝试过使用 desc (表名),但这也不起作用。如果有人可以指导我,我将非常感激。

4

2 回答 2

1

您是否将数据放入记录集中?如果是这样,请尝试:

For Each field in recordset.fields
Response.write field.name & "<br />"
Next
于 2012-07-24T08:31:07.627 回答
0

Are you pulling it into excel or just having a query.If you just having a query it shows up automatically. Or if you are doing it on code we just need data not the column names as it automatically takes it.

于 2012-07-23T22:12:48.817 回答