Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp classic 删除某个列,但仍将其包含在sql语句中_Asp Classic - Fatal编程技术网

Asp classic 删除某个列,但仍将其包含在sql语句中

Asp classic 删除某个列,但仍将其包含在sql语句中,asp-classic,Asp Classic,正如您可以从我的sql语句中看到的,我正在拉一个名为title的列。我需要拉取此列,因为它提供了我需要添加到特定列的信息,但是我不希望显示列(标题文本)标题如何删除它,同时将其保留在sql中 我知道这与循环中每个x的rs字段有关,但我不能让它不包含标题 x = "" for each x in rs.Fields response.write("<th align='left' bgcolor='#D3FFA1'>" & x.name & "&

正如您可以从我的sql语句中看到的,我正在拉一个名为title的列。我需要拉取此列,因为它提供了我需要添加到特定列的信息,但是我不希望显示列(标题文本)标题如何删除它,同时将其保留在sql中

我知道这与循环中每个x的rs字段有关,但我不能让它不包含标题

x = ""
    for each x in rs.Fields
        response.write("<th align='left' bgcolor='#D3FFA1'>" & x.name & "</th>")
    next%>
    </tr>

    <%do until rs.EOF%>

    %>
x=“”
对于rs.字段中的每个x
响应。写入(“&x.name&”)
下一个%>
%>
用于rs.字段中的每个x
如果x.name“title”,则
响应。写入(“&x.name&”)
恩迪夫
下一个%>
   for each x in rs.Fields
        if x.name <> "title" then
            response.write("<th align='left' bgcolor='#D3FFA1'>" & x.name & "</th>")
        endif
    next%>