SQL如何将一个表中的某一条记录插入另一个表中
这是我要的那条记录select*frompy15wherep15_slipno='qfw120027-09'andp15_sation='5140'andp15_prdt...
这是我要的那条记录
select * from py15
where p15_slipno='qfw120027-09' and p15_sation='5140' and p15_prdtcode='402I'
我备份到另一个表py15_27_09 中
select * into py15_27_09
from py15 where p15_slipno='qfw120027-09' and p15_prdtcode='402I'
我在py15中删除了这个记录
delete py15 where p15_slipno='qfw120027-09' and p15_prdtcode='402I'
现在想恢复那条记录
insert into py15 select p15_slipno='qfw120027-09' and p15_prdtcode='402I' f
rom py15_27_09
我执行恢复那条命令提示and附近语法错误,错在哪里? 展开
select * from py15
where p15_slipno='qfw120027-09' and p15_sation='5140' and p15_prdtcode='402I'
我备份到另一个表py15_27_09 中
select * into py15_27_09
from py15 where p15_slipno='qfw120027-09' and p15_prdtcode='402I'
我在py15中删除了这个记录
delete py15 where p15_slipno='qfw120027-09' and p15_prdtcode='402I'
现在想恢复那条记录
insert into py15 select p15_slipno='qfw120027-09' and p15_prdtcode='402I' f
rom py15_27_09
我执行恢复那条命令提示and附近语法错误,错在哪里? 展开
展开全部
insert into py15(p15_slipno,p15_prdtcode)
select p15_slipno,p15_prdtcode from py15_27_09
where p15_slipno ='qfw120027-09'
and p15_prdtcode ='402I'
select p15_slipno,p15_prdtcode from py15_27_09
where p15_slipno ='qfw120027-09'
and p15_prdtcode ='402I'
追问
谢谢.我这样操作效果一样吗
insert into py15
select *
from py15_27_09
where p15_slipno='qfw120027-09' and p15_prdtcode='402I'
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询