如何用SQL语言检索表中的字段名

来源:百度知道 编辑:UC知道 时间:2024/05/21 23:21:39
本人想在SQL中检索出某一个表中的字段名,请问语句应该怎么写?

<% dim msg,t
t=now()
msg=request("msg")
set rs=con.execute("select msg from news where msg='"&msg&"'")
if not rs.eof then
%>
<script Language="VbScript">
MsgBox "请别重复发言"
location.href="admin_gonggaofabu.asp"
</script>
<% end if
%>
<% if msg="" then
%>
<script Language="VbScript">
MsgBox "不能为空"
location.href="admin_gonggaofabu.asp"
</script>
<% end if %>
<% if rs.eof then
con.execute("insert news (msg,t) values( '"&msg&"','"&t&"')")
end if
%>