使用select into复制表
2015-12-21 14:14
162 查看
Private Sub Command1_Click() Dim cn As New ADODB.Connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=数据库名.mdb" cn.Execute "select * into table2 from table1 where false" cn.Close End Sub 如果在复制表结构的同时也复制数据,那么就 Private Sub Command1_Click() Dim cn As New ADODB.Connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=数据库名.mdb" cn.Execute "select * into table2 from table1" cn.Close End Sub
相关文章推荐
- grails中使用quartz编写定时任务
- windows下clang的安装与使用
- 预示应用性能问题的十大征兆
- 解决Fragment 使用回退栈,返回上一Fragment不刷新有关问题
- onConfigurationChanged
- 页面缓存测试
- iOS 证书 设置指南
- 详细剖析 android onInterceptTouchEvent(MotionEvent event) 和 onTouchEvent(MotionEvent event) 的事件传递机制
- iOS UILable自动适应的写法
- shell学习(2)-控制语句(if、case)
- 设计模式------原型模式
- openstack升级镜像
- oracle ASH
- 优先队列(堆)
- ZeroMQ研究与应用分析
- UIWebView页面的控制
- iOS9 HTTP 不能正常使用的解决办法
- iOS开发技巧 UIRefreshControl下拉刷新
- android StatusBar和NavigationBar分析
- IOS开发简单登录LoginViewController、注册RegisterViewController、UcenterViewController功能实现方法