|
|
 |
专题栏目 |
 |
 |
相关文章 |
 |
|
|
|
|
 |
自动生成插入,修改的SQL |
热 |
|
| 自动生成插入,修改的SQL |
|
作者:feng_sundy 文章来源:不详 点击数: 更新时间:2007-11-14 12:55:40  |
|
"''''" End Select iFields = iFields & ", "" & _" & vbCrlf iDataFields = iDataFields & ","" & _ " & vbCrlf updateSQL = updateSQL & ","" & _ " & vbCrlf End If Next iFields = Mid(iFields,1,len(iFields) - 9) iDataFields = Mid(iDataFields,1,len(iDataFields) - 9) insertSQL = insertSQL & iFields & ") VALUES ("" & _" & vbCrlf & iDataFields & ")""" updateSQL = Mid(updateSQL,1,len(updateSQL) - 9) & """ & _ " & vbCrLf & """ WHERE " & keyFieldName & "="" & request.QueryString(""" & keyFieldName & """)" End If conn.close() Set conn = Nothing %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>自动生成插入,修改SQL</title> <style type="text/css"> body { font-family: "宋体",Arial; font-size: 9pt; color: #0000FF; background-color: #EEEEEE; } </style> </head> <body> <form name="tableOpreate" action="?" method="post"> 表名:<input name="TableName" type="text" id="TableName" value="product_research"><br> 关键字字段:<input name="keyField" type="text" id="keyField" value="pf_id"><br> 过滤“''''”函数:<input name="funQuote" type="text" id="funQuote" value="fixQuote"><input name="subTable" type="submit" id="subTable" value="Submit"><br> INSERT SQL:<BR><% response.Write("<textarea name=""textarea"" cols=""60"" rows=""10"">" & insertSQL & "</textarea><BR>")%> UPDATE SQL:<BR><% response.Write("<textarea name=""textarea"" cols=""60"" rows=""10"">" & updateSQL & "</textarea><BR>")%> </form> </body> </html>
上一页 [1] [2] |
|
| 文章录入:mintao 责任编辑:mintao |
|
|
上一篇文章: Access数据库与SQLserver2000的数据互导 下一篇文章: 如何在SQL中启用全文检索功能?(实例) |
|
|
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |
|
注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网] |
网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| |
|
|
|
|