急!如何在select语句中对返回的recordset进行写操作? select 名次,编号,姓名,职业,总分 into #temp where 职业='"& Str &"' alter table #temp add newfield int identity(1,1)select * from #temp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 多谢了,问题已经解决,为方便大家我把我的代码贴出来: txtSQL = "select 编号,姓名,职业,总分 into a from score where 职业='计算机'" Set mrc = Execute(txtSQL, MsgText) txtSQL = " alter table a add 名次 int identity(1,1)" Set mrc = Execute(txtSQL, MsgText) Adodc1.ConnectionString = ConnectString Adodc1.RecordSource = "select 名次,编号,姓名,职业,总分 from a" Adodc1.Refresh txtSQL = "drop table a" Set mrc = Execute(txtSQL, MsgText) 循环添加数据表列 时间汇总问题,请帮忙看下 一个很急的数据库恢复问题 【很简单】关于True、Flase和Unknown用法的疑惑 求一比较难写的SQL语句!!! 求列出不同关键字的查询语句 关于SQL分组统计语句 有关不同表之间的数据更新的问题!!!在线等!!!谢谢!!! Access 2000里ComboBox的Enabled属性问题 哪里有oracle ocp认证考试的测试题目下载? 请教?? 请问怎么将两条指定的纪录之中的两个字段加起来,并且保存到其中一条纪录,删除另外一条纪录?也就是将纪录的数值合并起来
txtSQL = "select 编号,姓名,职业,总分 into a from score where 职业='计算机'"
Set mrc = Execute(txtSQL, MsgText)
txtSQL = " alter table a add 名次 int identity(1,1)"
Set mrc = Execute(txtSQL, MsgText)
Adodc1.ConnectionString = ConnectString
Adodc1.RecordSource = "select 名次,编号,姓名,职业,总分 from a"
Adodc1.Refresh
txtSQL = "drop table a"
Set mrc = Execute(txtSQL, MsgText)