<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OpenSQL INSERT Subquery in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894347#M1143324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to copy all records from one table and insert them into another identical table. I get the impression that this could be acheived using INSERT and a subquery SELECT but I can't seem to grasp it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2008 16:51:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-15T16:51:58Z</dc:date>
    <item>
      <title>OpenSQL INSERT Subquery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894347#M1143324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to copy all records from one table and insert them into another identical table. I get the impression that this could be acheived using INSERT and a subquery SELECT but I can't seem to grasp it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 16:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894347#M1143324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: OpenSQL INSERT Subquery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894348#M1143325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never heard that this could be done with just one open SQL statement (but that doesn't mean much).&lt;/P&gt;&lt;P&gt;I would select from one table into an internal table and insert that into the other one, using block processing in case the number of records is too large.&lt;/P&gt;&lt;P&gt;Probably an easier task if done directly down at the database level via native SQL.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 16:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894348#M1143325</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-15T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: OpenSQL INSERT Subquery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894349#M1143326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;insert into ztab1 from 
  select * from ztab2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't think this can be done in open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 17:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894349#M1143326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T17:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: OpenSQL INSERT Subquery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894350#M1143327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To copy all the contents of one table into another identical table,we need to something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from dbtab into correponding fileds of table itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhinab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 19:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opensql-insert-subquery/m-p/4894350#M1143327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T19:42:35Z</dc:date>
    </item>
  </channel>
</rss>

