易截截图软件、单文件、免安装、纯绿色、仅160KB

asp 简单的问题

--------------------------------
id    id2
1      1
2      0
3      0
---------------------------------

id 为自动编号 当我判断id=1的时候 id2项为1 怎么给其他的id为0,一下蒙了
UPDATE id2=1 WHERE id=1;
UPDATE id2=0 WHERE id <>1;
这样吗?

UPDATE table SET id2=1 WHERE id=1;
UPDATE table SET id2=0 WHERE id <>1;


能不能只用一个sql语句

<%
skin=request("skin")
if request("skin") <>"" then
Set rs=Server.CreateObject("adodb.recordSet")
rs.open "select * from skin where skin='"&skin&"'",conn,1,3
rs("style")=1
rs.update
rs.close
Set rs=Server.CreateObject("adodb.recordSet")
rs.open "select * from skin where skin <>'"&skin&"'",conn,1,3
rs("style")=0
rs.update
rs.close
set rs=nothing
end if
%>
我这样写也不行不知道怎么弄,插入的那个rs("style")是为1 可是没给条件的rs("style")还是为1


自动编号好像不可写的。

SQL code:
update table
set id2 = 0
where (select count(*) from table where id=1 and


相关问答:

asp初学问题。response找不到

<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'注意变量 ......

ASP判断的问题,郁闷了!判断不出来!

HTML code:

dim jf
set conn=server.createobject("adodb.connection")
connstr="Driver={Sql Server};Server="&Sqlip&";Database="&Sqldb&";Uid="& ......

asp递归上限的问题

news表里有pname(上层科目),mname(科目),type(分类)这三个字段;

下面这个递归.实验测试只能递归到110层..需要怎么改,才能无限??

JScript code:

function gethz(pname8,type8)
dim str,rs
......

ASP中向ASPX页传值。 中文取不到值

又遇到问题乐。。

http://localhost/vsnet/LssearchC.aspx?searchtxt=王&city1===选择省份==&city2===选择市==&city3===选择区(县)==

这是asp里面的

<iframe src="vsne ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号