Is there an Oracle SQL tool that creates insert statements from a result set? We are currently allowed to use a tool called SQL Station. I would like to offer either a tool like Rapid SQL or CrazySQuirrell, or create my own reusable sql fragment.
I found this solution that I am using now. Thanks for the help. Turns out we can also use SQL +. For some reason, I cannot run it in SQL Station.
COPY FROM userid/password @from_DB TO userid/password > @to_DB INSERT toDB_tablename SELECT * FROM fromDB_tablename ....;
;
? , SELECT, , SQL:
INSERT INTO table2 (columnA, columnB) SELECT columnA, columnB FROM table1;
PL/SQL Developer . PL/SQL Developer, Oracle SQL Developer, , , PL/SQL Developer . SQL Developer, PL/SQL Dev. CSV, XML HTML.
WINE, Linux.
, cx_OracleTools .
http://cx-oracletools.sourceforge.net/
, Oracle sql developer.Its otn.oracle.com
, :
Select 'Insert Into MyOtherTableTable Values(''' || MyMainTableColumn1 || ''' and ''' || MyMainTableColumn2 || ''')' From MyMainTable
, . . , . .
, , -. , "" . - " ", . .
Oracle SQL-Developer script (F5):
select /*insert*/ * from dual;
:
Insert into "dual" (DUMMY) values ('X');
/* csv */"/* html */
source: http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/
SELECT /*csv*/ * FROM scott.emp; SELECT /*xml*/ * FROM scott.emp; SELECT /*html*/ * FROM scott.emp; SELECT /*delimited*/ * FROM scott.emp; SELECT /*insert*/ * FROM scott.emp; SELECT /*loader*/ * FROM scott.emp; SELECT /*fixed*/ * FROM scott.emp; SELECT /*text*/ * FROM scott.emp;
Source: https://habr.com/ru/post/1706191/More articles:How to start the PostgreSQL database service in the "Local system" section? - postgresqlusing a database using ExtendScript (for Adobe Illustrator) - databaseBest external REST API access pattern? - c #Как получить доступ к phpMyAdmin на удаленном сервере - databaseIE 6/7 Access Denied access to a popup. Document - javascriptAll tests fail, cannot get the type and FileNotFoundException if a certain line of code in one test after adding fmod Visual C ++ test - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1706193/heuristics-to-discover-spammersbots-in-forums-blogs-etc&usg=ALkJrhg6ofZgrpxajVoDuqEeAfqrdFTbVgSession Security - securityLog delivery - sql-serverWorkflow Foundation ExternalDataExchange Queued and Transactional Messages? - workflowAll Articles