📄 connsql.asp
字号:
<!--#include file="head.asp" -->
<p><b>SOL语句执行操作</b>:本操作仅限高级、对SQL编程比较熟悉的用户,您可以直接输入sql执行语句,比如delete from bbs1 where
username='test'进行删除某用户帖子操作,在操作前请慎重考虑您的执行语句是否正确和完整,执行后不可恢复。</p>
<%
if request("action") = "save" then
SQL_Statement=Request("SQL_Statement")
if SQL_Statement<>Empty then
On Error Resume Next
conn.Execute(SQL_Statement)
if err.number="0" then
response.write "执行成功"
else
response.write "语句有问题,具体出错如下:<br>"
response.write Err.Description
err.clear
end if
end if
else
%>
<table width="80%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="100%" height="2"><font color="<%=TableContentColor%>">
<Form Name=FormPst Method=Post Action="connsql.asp?action=save">
<FieldSet>
<Legend>请输入SQL语句</Legend>
指令:
<Input type="text" name="SQL_Statement" Size=60 class="smallInput">
<p>
<Input type="Submit" Value="送出" class="buttonface">
<p>
</FieldSet>
</Form></font>
</td>
</tr>
</table>
<%end if%>
<!--#include file="copy.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -