新表包含原表数据: select * into new_tb from old_tb新表不包含原表数据: select * from new_tb from old_tb where 1=2 这二个都是要求new_tb不能事先存在
dim cn as adodb.connectionset cn = new adodb.connexction cn.open "provider=microsoft.jet.oledb.4.0;data source=" & app.path & "\你的数据库名.mdb"cn.execute "select * into b from a" cn.close set cn = nothing
楼上的回答是正确的! select * into 新表 from 旧表 如果新表不存在,则自动创建它。
select * into new_tb from old_tb新表不包含原表数据:
select * from new_tb from old_tb where 1=2
select * into new_tb from old_tb新表不包含原表数据:
select * from new_tb from old_tb where 1=2
这二个都是要求new_tb不能事先存在
cn.open "provider=microsoft.jet.oledb.4.0;data source=" & app.path & "\你的数据库名.mdb"cn.execute "select * into b from a"
cn.close
set cn = nothing
select * into 新表 from 旧表
如果新表不存在,则自动创建它。