用ado对象,删除数据库中所有表名以“temp”开头的表,请问sql如何写?
如,表中有如下表:temp_a, temp_b,temp_53 ,....如何用一条语句把这些表全部删掉?
如,表中有如下表:temp_a, temp_b,temp_53 ,....如何用一条语句把这些表全部删掉?
解决方案 »
- VB2008 不是configuration的成员
- 紧急求助:求一个简单的Access的图书管理系统(完整的)~~~~后天就要交了,没有的话就只能挂了
- Command控件小问题
- INstallshield12制作的多光盘安装程序
- 要求相加显示a+b+c+。。。不是显示求和的值
- 大家帮帮忙吧,怎样才能把datagrid中数据导出到Excel中呢?谢谢啦!
- 在一个查询模块中,实现光标指向符合查询条件的记录
- 关于检测当前路径是否有文件存在
- 请问怎样在VB DLL 里访问ASP 中的Session 变量?
- 请问各位大哥。 mp3player.ocx 的 name 和 pass 是什么???
- 请高手看一下这个错误:
- 救命:我在VB里面调用DLL为什么老说文件找不到?(在线等待)
sql=sql & vbcrlf & "declare @tb sysname"
sql=sql & vbcrlf & "open tb"
sql=sql & vbcrlf & "fetch next from tb into @tb"
sql=sql & vbcrlf & "while @@fetch_status=0"
sql=sql & vbcrlf & "begin"
sql=sql & vbcrlf & "exec('drop table ['+@tb+']')"
sql=sql & vbcrlf & "fetch next from tb into @tb"
sql=sql & vbcrlf & "end"
sql=sql & vbcrlf & "close tb"
sql=sql & vbcrlf & "deallocate tb"db.execute sql 'db是ado.connection对象,并且已经连接到数据库