Posted: Wed Sep 02, 2009 3:23 pm Post subject: в EXEC SQL вставить в oracle-табл данные с прозрачной таб
могу через loop insert-ить в oracl- овую таблицу нужные мне данные с внутренней таблицы, но записей много (100 000) и хотелось бы вставлять сразу, а не в цикле ... можно ли вообще так сделать -- это например ошибка:
EXEC SQL.
insert into ORACLE_TAB SELECT * FROM SAP_TAB
ENDEXEC.
sap_tab - прозрачная таблица
Age: 165 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Thu Sep 03, 2009 1:19 pm Post subject:
Друзья по разуму утверждают, что так будет работать, попробуйте, может прокатит.
Hi,
If DBlink was already set, You may use the native sql commands for updating.
Code:
*--to connect
* where gd_connect contains the logical name for the
* database connection set up by your BASIS team
* SAMPLE connection only "ITSCON"
GD_CONNECT = "ITSCON".
EXEC SQL.
CONNECT TO :GD_CONNECT
ENDEXEC.
*---Populate your internal table having thesame structure
*---as with the remote DB
it_oradb-<field1> = <value1>
it_oradb-<field2> = <value2>
append it_oradb.
*--to insert
EXEC SQL.
*--then you can insert here the normal SAP SQL commands
INSERT <oradb> from table :it_oradb
ENDEXEC.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.