⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sql.asp

📁 本系统无论是现在还是将来的升级的版本均免费。学生综合测评分也叫综合分或者纪律分
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="img/Style.css" rel="stylesheet" type="text/css" />
</head>
<!-- #include file="const.asp" -->
<body>
  <p>
    <%
if request("action") = "save" then
SQL_Statement=Request("SQL_Statement")
if SQL_Statement<>Empty then
On Error Resume Next 
dbconn.Execute(SQL_Statement)
if err.number="0" then
response.write "<script>alert(""执行成功"");location.href=""sql.asp"";</script>"
else
	errmsg = "<li>语句有问题,具体出错如下:<br />"
	errmsg = errmsg & Err.Description
	err.clear
	response.write(errmsg)
	response.end
end if
end if
else
%>
  </p>
<p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
<table width="76%" border="0" align="center" cellpadding="5" cellspacing="5"  class="atable1">
    <tr> 
      <td colspan="2" align="center" height="30">批量处理数据 </td>
    </tr>
    <tr valign="middle"> 
	  <td>
	 <p><span class="red">SOL语句执行操作:</span>本操作仅限高级、对SQL编程比较熟悉的用户,您可以直接输入sql执行语句,比如delete from table1 where 
  id=2 进行删除某篇文章的操作,在操作前请慎重考虑您的执行语句是否正确和完整,执行后不可恢复。</p>

     <table width="90%" border="0" align="center" cellpadding="0" cellspacing="3">
                <tr> 
                  <td width="100%" height="2">
<Form Name=FormPst Method=Post Action="sql.asp">
<FieldSet>
<Legend>请输入SQL语句</Legend>
指令:
              <Input name="SQL_Statement" type="text" class="red" Size=80>
               <p>
                &nbsp;&nbsp;&nbsp;
                <Input type="Submit" Value="执行" class="atable1">
				<input type="hidden" name="action" value="save">
    <p>
</FieldSet>
</Form>
                  </td>
                </tr>
</table>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -