“insert into” 在SQL中运行正常但为什么加在ASP中就不行了呢?
将表gz_zc所有记录追加到表gz中,没有提示任何错误,但为什么就不行了呢?能否做到确保全部记录都追加到表gz就清空表gz_zc~~~~谢谢!~~
但在SQL中运行“insert into gz SELECT * FROM gz_zc”是成功了~~~
???
<!-- #include file="conn.asp" -->
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<%
set rs = server.createobject("adodb.recordset")
sql ="insert into gz SELECT * FROM gz_zc"
rs.open sql,conn,1,3
%>
<body>
</body>
</html>