加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

[VB.NET]如何将Access数据库里的a表里的部分数据移到b表里

发布时间:2020-12-16 23:42:44 所属栏目:大数据 来源:网络整理
导读:如何将Access数据库里的a表里的部分数据移到b表里 这个是复制的,有没有直接移动不用在删除ZT_directory表里的数据 conn1.Open() comm1.CommandText = insert into ZT_directory_History select * from ZT_directory where ID= LabelID.Text comm1.ExecuteNo
如何将Access数据库里的a表里的部分数据移到b表里 这个是复制的,有没有直接移动不用在删除ZT_directory表里的数据 conn1.Open() comm1.CommandText = insert into ZT_directory_History select * from ZT_directory where ID= & LabelID.Text comm1.ExecuteNonQuery() conn1.Close() 关闭连接 __________________________________________________________________________ 还有2个表分别在2个数据库中,应该如何写 __________________________________________________________________________ comm1.CommandText = insert into ZT_directory_History select * from ZT_directory where ID= & LabelID.Text 直接再加一条语句 comm1.CommandText = insert into ZT_directory_History select * from ZT_directory where ID= & LabelID.Text & DELETE FROM ZT_directory where ID= & LabelID.Text __________________________________________________________________________ 两个数据库的话,可以在表名前面加数据库名,如: A库.table1 __________________________________________________________________________ comm1.CommandText = insert into ZT_directory_History select * from ZT_directory where ID= & LabelID.Text & DELETE FROM ZT_directory where ID= & LabelID.Text 没有反应呀 __________________________________________________________________________ dim asdf as string 你把第一个库里的数据提出来赋值给asdf,再用asdf插入到第二个库里,建立两个数据库连接 __________________________________________________________________________

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读