strUserQuery = request.querystring("UserQuery")
strQueryToBeExecuted = "Select * from (" & strUserQuery & ") where rownum < 501"
查询运行时如何自动打印表的标题?我尝试打印第一行,但查询结果中没有列名。
我也尝试过使用 desc (表名),但这也不起作用。如果有人可以指导我,我将非常感激。
strUserQuery = request.querystring("UserQuery")
strQueryToBeExecuted = "Select * from (" & strUserQuery & ") where rownum < 501"
查询运行时如何自动打印表的标题?我尝试打印第一行,但查询结果中没有列名。
我也尝试过使用 desc (表名),但这也不起作用。如果有人可以指导我,我将非常感激。
您是否将数据放入记录集中?如果是这样,请尝试:
For Each field in recordset.fields
Response.write field.name & "<br />"
Next
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.