插入Oracle查询 [英] Insert query for Oracle

查看:70
本文介绍了插入Oracle查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我有两个表名表1和表2如下: -

表1

手机备注





表2

手机名称Fname地址





现在我希望table2.mobile数据应该复制到table1.mobile数据中,Table2数据的其余列应该复制到table1.remarks列中。

请发给我查询







先生,

当您使用查询发送时在MS-Access 2007中,它给出了错误消息,即查询表达式中的语法错误选择移动。

Sir,
I have two Table Name Table1 and Table2 as below:-
Table1
Mobile Remarks


Table2
Mobile Name Fname Address


Now I want that table2.mobile data should copy into the table1.mobile data and rest of the columns of Table2 data should be copy in the table1.remarks column.
Please send me query



Sir,
As you send the query am using in MS-Access 2007 but its giving error message that Syntax error in query expression "select mobile".

推荐答案

尝试使用下面提到的查询。



Try out with below mentioned query.

INSERT INTO TABLE1 (Mobile, Remarks) VALUES (SELECT MOBILE, NAME||' '||FNAME||' '||ADDRESS FROM TABLE 2)





希望这会对你有帮助..



Hope this will help you..


这篇关于插入Oracle查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆