<?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 Working with MySQL cursor for a table with huge number of columns. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Working-with-MySQL-cursor-for-a-table-with-huge-number-of/m-p/69746#M42716</link>
    <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am writing a procedure to convert data from multiple smaller tables into a 'flat' table with many columns(~100).&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have a cursor defined which reads/joins data from smaller tables.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So far I have seen that 'fetch' semantics works with explicit variables in mysql. Is there a way where I can do something like: 'fetch * from cursor; followed by insert'?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Following is a sample (for single field insert).&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;How to deal if let's say temp and jsontable had 50 columns. (fetching into 50 explicit variables or is there a better way?)&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 17:59:59 GMT</pubDate>
    <dc:creator>TedowsGomes</dc:creator>
    <dc:date>2019-11-19T17:59:59Z</dc:date>
    <item>
      <title>Working with MySQL cursor for a table with huge number of columns.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Working-with-MySQL-cursor-for-a-table-with-huge-number-of/m-p/69746#M42716</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am writing a procedure to convert data from multiple smaller tables into a 'flat' table with many columns(~100).&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I have a cursor defined which reads/joins data from smaller tables.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So far I have seen that 'fetch' semantics works with explicit variables in mysql. Is there a way where I can do something like: 'fetch * from cursor; followed by insert'?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Following is a sample (for single field insert).&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;How to deal if let's say temp and jsontable had 50 columns. (fetching into 50 explicit variables or is there a better way?)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:59:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Working-with-MySQL-cursor-for-a-table-with-huge-number-of/m-p/69746#M42716</guid>
      <dc:creator>TedowsGomes</dc:creator>
      <dc:date>2019-11-19T17:59:59Z</dc:date>
    </item>
  </channel>
</rss>

