如何从记录集值创建表
如何从记录集值创建表
sqlCardEvent1 = "select * from tmp_CARDEVENT"
If rsCardEvent1.State = 1 Then rsCardEvent1.Close
rsCardEvent1.Open sqlCardEvent1, Cn, adOpenStatic, adLockOptimistic
cmdCardEvent1.CommandText = sqlCardEvent1
Set rsCardEvent1 = cmdCardEvent1.Execute
sql33 = "create table tmp_date1 from" & rsCardEvent1
rstmpDATE1.Open sql33, Cn, adOpenStatic, adLockOptimistic
需要 SQL 查询帮助?
How to Create a Table from the recordset value
sqlCardEvent1 = "select * from tmp_CARDEVENT"
If rsCardEvent1.State = 1 Then rsCardEvent1.Close
rsCardEvent1.Open sqlCardEvent1, Cn, adOpenStatic, adLockOptimistic
cmdCardEvent1.CommandText = sqlCardEvent1
Set rsCardEvent1 = cmdCardEvent1.Execute
sql33 = "create table tmp_date1 from" & rsCardEvent1
rstmpDATE1.Open sql33, Cn, adOpenStatic, adLockOptimistic
Need SQL Query Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 SQL 中执行此操作并使用 SqlCommand 的 ExecuteNonQuery 方法:
You would do it in SQL and use the ExecuteNonQuery method of SqlCommand: