<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
function insert()
{rs = new ActiveXObject("ADODB.Recordset")
var ConnDB=Server.CreateObject("ADODB.Connection");
ConnDB.ConnectionString="driver{SQLServer};server=.;uid=sa;pwd=;database=pubs";
ConnDB.Open();
var rst0=Server.CreateObject("Adodb.Recordset");
rst0.EXECUTE("insert into jobs(job_desc,min_lvl,max_lvl) values('ddd',10,30)");
}
</script>
<body>
<input type="button" id ="ok" onclick="insert()" value="ok"/>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
function insert()
{rs = new ActiveXObject("ADODB.Recordset")
var ConnDB=Server.CreateObject("ADODB.Connection");
ConnDB.ConnectionString="driver{SQLServer};server=.;uid=sa;pwd=;database=pubs";
ConnDB.Open();
var rst0=Server.CreateObject("Adodb.Recordset");
rst0.EXECUTE("insert into jobs(job_desc,min_lvl,max_lvl) values('ddd',10,30)");
}
</script>
<body>
<input type="button" id ="ok" onclick="insert()" value="ok"/>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货