asp 中 sql字符串生成程序
作者:cmscn 日期:2009-08-13
sqlstrMaker.asp--------------------------------------------------------------------
<%
if request.Form("submit")<>"" and request.Form("sqlstr")<>"" then
dim ziduan,strsql,strend
strsql=trim(request.Form("sqlstr"))
ziduan=replace(strsql,chr(32),"," )
strsql2=replace(strsql,chr(32)," & "','" & " )
strend="""+"insert into dgxx ("& ziduan &") values ('" & " +""+strsql2+ " & "')""
response.Write(strend)
end if
'end if
response.Write "insert into dgxx (ffdsa,fdsa) values ('" & ffdsa & "','" & fdsa & "')"
%>
<form name="form1" method="post" action="">
<p> </p>
<p>sql生成
<input name="sqlstr" type="text" id="sqlstr" size="100">
</p>
<div align="center">
<input type="submit" name="Submit" value="提交">
</div>
</label>
</form>
sqlstrMaker.asp--------------------------------------------------------------------
评论: 0 | 引用: 0 | 查看次数: 612
发表评论