在线数据库管理工具(db007) v1.5(30)
echo "<td><a href='?"&Request.QueryString&"&keylog="&rs(primarykey)&"' onClick='return table_delete();'><font color=#FF000>×</font></a></td>"
end if
for i = 0 to rs.fields.count - 1
set field = rs.fields.item(i)
if len(field.value) < 12 then
echo "<td bgcolor=#ffffff nowrap>" & field.value & " </td>"
else
echo "<td bgcolor='#ffffff'><span class='fixspan'>" & field.value & " </span></td>"
end if
next
echo "</tr>"
rs.MoveNext
j = j + 1
loop
'response.ContentType ="application/vnd.ms-excel"'生成EXCEL表格
echo "</table></div>"
end sub
sub exesql(sql)
on error resume next
'==================================================================执行sql函数
if trim(request.form("SchemaTable")) <> "" then Call showSchema (adSchemaTables)
if trim (request.form("SchemaColumn")) <> "" then Call showSchema(adSchemaColumns)
if trim (request.form("SchemaProvider")) <> "" then Call showSchema(adSchemaProviderTypes)
sql = trim(request("sql"))
if sql = "" then exit sub
sql = RegExpReplace(sql, "(--)(.)*\n", "") '替换注释
sql = RegExpReplace(sql, "\n[\s| ]*\r", "") '替换空行
sql = RegExpReplace(sql, "\n", "") '替换换行符
sql = RegExpReplace(sql, "\r", "") '替换回车符
if (LCase(left(sql,len("select"))) = "select") and instr(sql,"into") = 0 then
内容版权声明:除非注明,否则皆为本站原创文章。