<?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>Question Re: Multirow inserts in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838269#M4869112</link>
    <description>&lt;P&gt;The multiple values option in 12.0.0 is great; but if you have an old version or want to do some SQL substitutions related to a fixed set of data in your Stored Procedure, try using OpenXML.  I do the following when building up a set of error messages that I want to hardcode (for maintenance reasons) into the code and that have to be translated using tables in system:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;create table #E (idSituationCUR unsigned integer, txMessage char(150), idSeqRead integer default 0);

-- using openxml to simplify the load and set a default value should the Join with CodelistTranslation
-- fail to find a corresponding entry
insert into #E (idSituationCUR, txMessage)
select LOAD.idSituationCUR, isnull(CLT.txOther,LOAD.txOther)
from OPENXML( string ('&lt;SPAN class="nt"&gt;&amp;lt;a&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;b&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c1=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"6201"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c2=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"REF"&lt;/SPAN&gt;                                    &lt;SPAN class="na"&gt;c3=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"',@kSituation_APPENDED,'"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;/&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;b&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c1=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"6202"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c2=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"CODE USED BY 2+ ITEMS, FIX ONLINE ONLY"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c3=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"',@kSituation_MULTICDs,'"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;/&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;b&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c1=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"6203"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c2=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"UNKNOWN/CAN ADD"&lt;/SPAN&gt;                        &lt;SPAN class="na"&gt;c3=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"',@kSituation_NOTFOUND,'"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;/&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;'),
  'a/b' )
with ( idKey integer '@c1', txOther text '@c2', idSituationCUR unsigned integer '@c3') AS LOAD
left outer join BOS.CodelistLanguage CLT 
  on CLT.idCodelist = 238 and CLT.idLanguage = @idLanguage and CLT.idKey = LOAD.idKey;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 Oct 2012 02:56:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-09T02:56:21Z</dc:date>
    <item>
      <title>Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaq-p/13838265</link>
      <description>&lt;P&gt;Sybase has the ability to make an insertion &lt;A href="http://en.wikipedia.org/wiki/Insert_%28SQL%29#Multirow_inserts" target="_blank"&gt;multi rows&lt;/A&gt;? If yes, what version is available? If not, has plans to develop?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2012 20:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaq-p/13838265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-07T20:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838266#M4869109</link>
      <description>&lt;P&gt;Do you mean a VALUES clause on an INSERT statement that permits multiple rows? Something like this:&lt;/P&gt;
&lt;P&gt;INSERT INTO T VALUES( (col1_value, col2_value), (col1_value, col2_value), ... )&lt;/P&gt;
&lt;P&gt;This is supported in version 12 - I cannot recall whether or not this shipped in 12.0.0 or 12.0.0. See the documentation at &lt;A href="http://dcx.sybase.com"&gt;dcx.sybase.com&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you are thinking of another construction (ie. multi-row inserts thru JDBC or ODBC), these are also supported and have been for some time. &lt;/P&gt;</description>
      <pubDate>Sun, 07 Oct 2012 21:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838266#M4869109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-07T21:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838271#M4869114</link>
      <description>&lt;P&gt;FWIW, this enhancement has been introduced with v12.0.0, cf. &lt;A href="http://dcx.sybase.com/index.html#1201/en/sachanges/newinnsbruck-sectc-37891021.html"&gt;this page&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;INSERT statement enhancements&lt;/STRONG&gt;&lt;BR /&gt;
The following enhancements have been made to the INSERT statement. See INSERT statement. &lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Support for more than one list of values&lt;/STRONG&gt; &lt;BR /&gt;
An INSERT statement can now contain more than one list of values, allowing several rows to be inserted at once. For example:&lt;BR /&gt;
  INSERT INTO T (c1,c2,c3)&lt;BR /&gt;
  VALUES (1,10,100), (2,20,200), (3,30,300);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Support for inserting rows with all default values&lt;/STRONG&gt;&lt;BR /&gt;
SQL Anywhere allows the VALUES clause to contain specified values for a subset of the columns in the table. All unspecified columns are given default values as specified for each column by means of DEFAULT, NULL and COMPUTE clauses of the CREATE TABLE statements. Previously, the database server required that you specify input values for at least one of the columns in the table.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 08 Oct 2012 03:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838271#M4869114</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-10-08T03:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838267#M4869110</link>
      <description>&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;TABLE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;IF&lt;/SPAN&gt; &lt;SPAN class="n"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;EXISTS&lt;/SPAN&gt; &lt;SPAN class="n"&gt;TEST&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;
        &lt;SPAN class="n"&gt;EMP&lt;/SPAN&gt; &lt;SPAN class="n"&gt;char&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;3&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;NULL&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="n"&gt;COD&lt;/SPAN&gt; &lt;SPAN class="n"&gt;integer&lt;/SPAN&gt; &lt;SPAN class="n"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;NULL&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="n"&gt;DESCR&lt;/SPAN&gt; &lt;SPAN class="n"&gt;char&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;60&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;NULL&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="n"&gt;PRIMARY&lt;/SPAN&gt; &lt;SPAN class="n"&gt;KEY&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;EMP&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;COD&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; 
&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;

&lt;SPAN class="n"&gt;INSERT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;INTO&lt;/SPAN&gt; &lt;SPAN class="n"&gt;TEST&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;VALUES&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 1'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; 
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;2&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 2'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; 
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;3&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 3'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;4&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 4'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; 
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;5&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 5'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; 
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;6&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 6'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;7&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 7'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; 
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;8&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 8'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; 
       &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'001'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;9&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'TEST 9'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 14:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838267#M4869110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-08T14:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838268#M4869111</link>
      <description>&lt;P&gt;For older versions without the repeating values enhancement or where you might be doing a translation substitution, the following works..
&lt;/P&gt;&lt;PRE&gt;  create table #E (idSituationCUR unsigned integer, txMessage char(150), idSeqRead integer default 0);  &lt;P&gt;&lt;/P&gt;
&lt;P&gt;-- using openxml to simplify the load and set a default value should the Join with 
  -- CodelistTranslation fail to find a corresponding entry
  insert into #E (idSituationCUR, txMessage)
  select LOAD.idSituationCUR, isnull(CLT.txOther,LOAD.txOther)
  from OPENXML( string ('&lt;A&gt;',
      '&lt;B&gt;',
      '&lt;B&gt;',
      '&lt;B&gt;',
      '&lt;/B&gt;&lt;/B&gt;&lt;/B&gt;&lt;/A&gt;&lt;B&gt;&lt;B&gt;&lt;B&gt;'),
    'a/b' )
  with ( idKey integer '@c1', txOther text '@c2', idSituationCUR unsigned integer '@c3') AS LOAD
  left outer join BOS.CodelistLanguage CLT on CLT.idCodelist = 238 and CLT.idLanguage = @idLanguage and CLT.idKey = LOAD.idKey;
&lt;/B&gt;&lt;/B&gt;&lt;/B&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 02:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838268#M4869111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-09T02:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838269#M4869112</link>
      <description>&lt;P&gt;The multiple values option in 12.0.0 is great; but if you have an old version or want to do some SQL substitutions related to a fixed set of data in your Stored Procedure, try using OpenXML.  I do the following when building up a set of error messages that I want to hardcode (for maintenance reasons) into the code and that have to be translated using tables in system:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;create table #E (idSituationCUR unsigned integer, txMessage char(150), idSeqRead integer default 0);

-- using openxml to simplify the load and set a default value should the Join with CodelistTranslation
-- fail to find a corresponding entry
insert into #E (idSituationCUR, txMessage)
select LOAD.idSituationCUR, isnull(CLT.txOther,LOAD.txOther)
from OPENXML( string ('&lt;SPAN class="nt"&gt;&amp;lt;a&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;b&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c1=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"6201"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c2=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"REF"&lt;/SPAN&gt;                                    &lt;SPAN class="na"&gt;c3=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"',@kSituation_APPENDED,'"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;/&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;b&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c1=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"6202"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c2=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"CODE USED BY 2+ ITEMS, FIX ONLINE ONLY"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c3=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"',@kSituation_MULTICDs,'"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;/&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;b&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c1=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"6203"&lt;/SPAN&gt; &lt;SPAN class="na"&gt;c2=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"UNKNOWN/CAN ADD"&lt;/SPAN&gt;                        &lt;SPAN class="na"&gt;c3=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"',@kSituation_NOTFOUND,'"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;/&amp;gt;&lt;/SPAN&gt;',
  '&lt;SPAN class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;'),
  'a/b' )
with ( idKey integer '@c1', txOther text '@c2', idSituationCUR unsigned integer '@c3') AS LOAD
left outer join BOS.CodelistLanguage CLT 
  on CLT.idCodelist = 238 and CLT.idLanguage = @idLanguage and CLT.idKey = LOAD.idKey;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Oct 2012 02:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838269#M4869112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-09T02:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838272#M4869115</link>
      <description>&lt;P&gt;Such a pity that "open database documentation" like this page doesn't list the great features of SQL Anywhere... sometimes the "invisible database" is way too invisible to get its deserved audience:(&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 03:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838272#M4869115</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-10-09T03:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838270#M4869113</link>
      <description>&lt;P&gt;For older versions ( e.g. 10 ), this seems to work:&lt;/P&gt;
&lt;P&gt;INSERT INTO T ( "col1", "col2" )   (  ( SELECT '12', '34' FROM T2 ) UNION ( SELECT '56', '78' FROM T2 )  )&lt;/P&gt;
&lt;P&gt;greg &lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838270#M4869113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-16T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838273#M4869116</link>
      <description>&lt;P&gt;Yes, this is a simple INSERT...SELECT and will work even with very very old SQL Anywhere versions... - note, you can omit the brackets around the SELECT statement and omit the (dummy) table name, such as&lt;/P&gt;
&lt;PRE&gt;CREATE TABLE T (col1 VARCHAR(10), col2 VARCHAR(10));
INSERT INTO T (col1, col2)
   SELECT '12', '34' UNION SELECT '56', '78';
&lt;/PRE&gt;

&lt;P&gt;(I'm note sure whether the OP was asking for that...)&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 02:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838273#M4869116</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2016-05-17T02:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838274#M4869117</link>
      <description>&lt;P&gt;With this method, Is there a limit on the number of rows inserted ?&lt;/P&gt;
&lt;P&gt;greg&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 20:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838274#M4869117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-17T20:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multirow inserts</title>
      <link>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838275#M4869118</link>
      <description>&lt;P&gt;I don't think there is an explicit limit on the number of rows aka the number of times you can use the UNION operator to combine query blocks... (or it would be same as the &lt;A href="http://dcx.sap.com/index.html#sa160/en/dbadmin/da-limits.html"&gt;(huge) maximum number of rows per table&lt;/A&gt;, so it would not matter &lt;EM&gt;how&lt;/EM&gt; you try to insert them). - I would guess that the overall length of the resulting statement might have its limits, possibly dependent of the API used, but then again that would hold for the INSERT ... VALUES (...), (...) statement, too. - Usually the particular hardware (memory, CPU, disk drives) will have a more limitating effect.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;IMHO, when trying to insert &lt;EM&gt;big&lt;/EM&gt; amounts of data that is &lt;EM&gt;not already contained in another table&lt;/EM&gt; (possibly of another database) and thus prevents the use of a simple INSERT SELECT statement, I would not use INSERT with multple values but would prefer LOAD TABLE or SELECT ... FROM OPENSTRING()/OPENXML() or the like.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 00:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multirow-inserts/qaa-p/13838275#M4869118</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2016-05-18T00:59:53Z</dc:date>
    </item>
  </channel>
</rss>

