在关键字 'select' 附近有语法错误。

germ007 2009-10-14 10:41:08

<%
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select city from user_table1 where age>20 group by sex",conn,1,1'////选择出年龄大于20的人员,并且以性别分组
do while not rs1.eof
conn.Execute("drop table #temp,select username,school into #temp from user_table2 where city='"&rs1("city")&"'")'////些句显示在关键字 'select' 附近有语法错误。

......

%>




user_table1
username city age sex
tom hb 23 m
john ci 33 m
jack hb 15 m
tony hb 55 f


user_table2
username city school
tom hb a
john ci b

...全文
128 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
germ007 2009-10-14
  • 打赏
  • 举报
回复
谢谢,已通过
germ007 2009-10-14
  • 打赏
  • 举报
回复
ding:)
gelinqing 2009-10-14
  • 打赏
  • 举报
回复
分号?
germ007 2009-10-14
  • 打赏
  • 举报
回复
ding

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧