用vb做一个sql查询(求助)
我想把sql1和sql2合并成一个查询,输入一次条件就可以完成插入,请问合并的应该怎么写才对。SQL1 = "INSERT INTO [d:\123.mdb].[表一] SELECT * FROM [表一] WHERE (((时间) Between [开始] And [结束]));"
SQL2 = "INSERT INTO [d:\123.mdb].[表二] SELECT * FROM [表二] WHERE (((时间) Between [开始] And [结束]));"
SQL = "INSERT INTO [d:\123.mdb].[表一],[表二] SELECT * FROM [表一],[表二] WHERE (((时间) Between [开始] And [结束]));"