<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Mar 2018 10:23:00 Z</lastBuildDate><pubDate>12 Mar 2018 17:49:00 Z</pubDate><description>Dear All,&#13;
&#13;
I have struggled with a challenge for while and thought I will share it here for help.&#13;
&#13;
I have the code below; I want to create a temporary table in MySQL and insert records into it to speed up a process that is running slow updating directly on disk.&#13;
&#13;
=========Code==============&#13;
ShtTable is string="MF"&#13;
indb is string="INFILE"&#13;
SQL1, SQL2 are Data Source&#13;
&#13;
sQuery is string="create temporary table "+ShtTable +" ("+...&#13;
"`country` varchar(10) NOT NULL,"+...&#13;
"`towncode` varchar(10) default NULL,"+...&#13;
"`townaddress` varchar(20) default NULL,"+...&#13;
"`townDigiLoc` varchar(20) default NULL'"&#13;
&#13;
IF NOT HExecuteSQLQuery(SQL1 , mainConnect, hQueryDefault+hQueryWithoutCorrection, sQuery ) THEN&#13;
Error(HErrorInfo(hErrFullDetails))&#13;
RETURN&#13;
END&#13;
&#13;
sQuery2="insert into "+ShtTable+"select * from "+indb&#13;
&#13;
IF NOT HExecuteSQLQuery(SQL2, mainConnect, hQueryDefault+hQueryWithoutCorrection, sQuery2) THEN&#13;
Error(HErrorInfo(hErrFullDetails))&#13;
RETURN&#13;
END&#13;
&#13;
&#13;
===The above works without error but when I try to display contents of SQL2 as below, I get an error that SQL2 is not initialized.&#13;
&#13;
BuildBrowsingTable(TABLE2, SQL2, taItemCaption+taFillTable)&#13;
&#13;
I will appreciate any help to get over this since I really need to reduce the processing speed. I could also do with another method than this approach.&#13;
&#13;
Sam</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table/read.awp</link><title>WD21: How to Create &amp;amp; Update MySQL Tempoary Table</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64929/read.awp</comments><pubDate>13 Mar 2018 10:23:00 Z</pubDate><description>Thanks for the comments and lead.&#13;
&#13;
sQuery2 is defined before usage so it works well. Moreover I have used this mode of access …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64929/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64929/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table/read.awp">WD21: How to Create &amp;amp; Update MySQL Tempoary Table</source><title>Re: WD21: How to Create &amp;amp; Update MySQL Tempoary Table</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64927/read.awp</comments><pubDate>13 Mar 2018 06:12:00 Z</pubDate><description>try to put create and insert in one sql</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64927/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64927/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table/read.awp">WD21: How to Create &amp;amp; Update MySQL Tempoary Table</source><title>Re: WD21: How to Create &amp;amp; Update MySQL Tempoary Table</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64923/read.awp</comments><pubDate>13 Mar 2018 02:22:00 Z</pubDate><description>Hi Sam,&#13;
&#13;
Are you sure your code works... i.e. where is your sQuery2 variable created?&#13;
&#13;
Is this all your code or are you tryi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64923/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table-64923/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64917-wd21-how-create-amp-update-mysql-tempoary-table/read.awp">WD21: How to Create &amp;amp; Update MySQL Tempoary Table</source><title>Re: WD21: How to Create &amp;amp; Update MySQL Tempoary Table</title></item></channel></rss>
