<?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 Re: How to get column names of a table in mySql from script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848315#M660069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind, I found the problem, the parameters I passed to the TABLE name and schema weren't in the right syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 13:32:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-16T13:32:44Z</dc:date>
    <item>
      <title>How to get column names of a table in mySql from script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848313#M660067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get column names from a mySql database table in a single column with the columns names.&lt;/P&gt;&lt;P&gt;I have a script working in dbVizualizer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT COLUMN_NAME &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM INFORMATION_SCHEMA.COLUMNS &lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE TABLE_SCHEMA='schema_name' &lt;/P&gt;&lt;P&gt;&amp;nbsp; AND TABLE_NAME='table_name';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to run it through the QV script, &lt;STRONG&gt;I get an empty result&lt;/STRONG&gt;&amp;nbsp; - I'm using an ODBC connection to mySql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SQL &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SELECT COLUMN_NAME &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; FROM INFORMATION_SCHEMA.COLUMNS &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; WHERE TABLE_SCHEMA='schema_name' &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; AND TABLE_NAME='table_name';&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;This script in QV gets an Empty result.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Anyone?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks!&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Boris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848313#M660067</guid>
      <dc:creator />
      <dc:date>2015-04-16T13:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get column names of a table in mySql from script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848314#M660068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the rest of your script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848314#M660068</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-16T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get column names of a table in mySql from script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848315#M660069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind, I found the problem, the parameters I passed to the TABLE name and schema weren't in the right syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848315#M660069</guid>
      <dc:creator />
      <dc:date>2015-04-16T13:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get column names of a table in mySql from script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848316#M660070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boris.. If you have fixed the issue. then please close the ticket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-column-names-of-a-table-in-mySql-from-script/m-p/848316#M660070</guid>
      <dc:creator />
      <dc:date>2015-04-16T13:43:48Z</dc:date>
    </item>
  </channel>
</rss>

