<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SQLQuery-&amp;gt; Problem???]]></title><description><![CDATA[<p>Hallo,<br />
ich bekomme immer wieder Fehlermeldung.<br />
Aber Syntax Error geht es bei mir nicht weiter ?</p>
<pre><code class="language-cpp">DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;use db1;&quot;);
 DataModule2-&gt;SQLQuery1-&gt;ExecSQL();
 DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Clear();
 DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;SELECT wert1, wert2 FROM tab_01;&quot;);
 DataModule2-&gt;SQLQuery1-&gt;Open();

 int i;
 for (i=0; i&lt;= DataModule2-&gt;SQLQuery1-&gt;RecordCount; i++) {

	String var = DataModule2-&gt;SQLQuery1-&gt;FieldByName(&quot;wert2&quot;)-&gt;AsString;
	DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;use &quot;+var+&quot;;&quot;);
    DataModule2-&gt;SQLQuery1-&gt;ExecSQL();    // Syntax Error
	DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;insert into tab_test tall='&quot;+Form1-&gt;Edit9-&gt;Text+&quot;';&quot;);
	DataModule2-&gt;SQLQuery1-&gt;ExecSQL();
	DataModule2-&gt;SQLQuery1-&gt;Next();
 }
</code></pre>
<p>Habe schon hier in Forum gesucht aber keine lösung gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195362/sqlquery-gt-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 08:37:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195362.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Oct 2007 01:48:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 09:24:02 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bekomme immer wieder Fehlermeldung.<br />
Aber Syntax Error geht es bei mir nicht weiter ?</p>
<pre><code class="language-cpp">DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;use db1;&quot;);
 DataModule2-&gt;SQLQuery1-&gt;ExecSQL();
 DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Clear();
 DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;SELECT wert1, wert2 FROM tab_01;&quot;);
 DataModule2-&gt;SQLQuery1-&gt;Open();

 int i;
 for (i=0; i&lt;= DataModule2-&gt;SQLQuery1-&gt;RecordCount; i++) {

	String var = DataModule2-&gt;SQLQuery1-&gt;FieldByName(&quot;wert2&quot;)-&gt;AsString;
	DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;use &quot;+var+&quot;;&quot;);
    DataModule2-&gt;SQLQuery1-&gt;ExecSQL();    // Syntax Error
	DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Add(&quot;insert into tab_test tall='&quot;+Form1-&gt;Edit9-&gt;Text+&quot;';&quot;);
	DataModule2-&gt;SQLQuery1-&gt;ExecSQL();
	DataModule2-&gt;SQLQuery1-&gt;Next();
 }
</code></pre>
<p>Habe schon hier in Forum gesucht aber keine lösung gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386786</guid><dc:creator><![CDATA[titanium]]></dc:creator><pubDate>Wed, 17 Oct 2007 09:24:02 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 08:02:49 GMT]]></title><description><![CDATA[<p>Lass dir den Inhalt von SQLQuery1-&gt;SQL an der entsprechenden Stelle mal ausgeben, dann sollte dir die Ursache klarwerden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386896</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386896</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 17 Oct 2007 08:02:49 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 09:23:28 GMT]]></title><description><![CDATA[<p>Hi,<br />
muss mich korrigieren.<br />
Die Fehlermeldung sind kein Syntax Error.<br />
Die Meldungen kommen in Zeile 11 und 13, bei ExecSQL();</p>
<pre><code class="language-cpp">DataModule2-&gt;SQLQuery1-&gt;ExecSQL();
</code></pre>
<p>Das kann er nicht ausführen.<br />
Was kann ich machen wenn ich mehrere ExecSQL() habe?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386954</guid><dc:creator><![CDATA[titanium]]></dc:creator><pubDate>Wed, 17 Oct 2007 09:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 09:25:46 GMT]]></title><description><![CDATA[<p>Hast Du mal Jansens Vorschlag beherzigt?</p>
<p>Gruß</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386955</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386955</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Wed, 17 Oct 2007 09:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 09:46:00 GMT]]></title><description><![CDATA[<p>Ja habe ich,<br />
Ausgabe 1:</p>
<pre><code>SELECT wert1, wert2 FROM tab_01;
</code></pre>
<p>bei 2:</p>
<pre><code>SELECT wert1, wert2 FROM tab_01;
use db02;
</code></pre>
<p>und beim 3:</p>
<pre><code>SELECT wert1, wert2 FROM tab_01;
use db02;
insert into tab_test tall='test';
</code></pre>
<p>Die wiederholen sich bei jeder Schleife.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386972</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386972</guid><dc:creator><![CDATA[titanium]]></dc:creator><pubDate>Wed, 17 Oct 2007 09:46:00 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 10:06:42 GMT]]></title><description><![CDATA[<p>Setze zuerst mal den Counter einen runter :</p>
<pre><code class="language-cpp">for (i=0; i&lt;= DataModule2-&gt;SQLQuery1-&gt;RecordCount - 1; i++) {
   ...
}
</code></pre>
<p>MfG</p>
<p>kpeter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1386999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1386999</guid><dc:creator><![CDATA[kpeter]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:06:42 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 10:37:31 GMT]]></title><description><![CDATA[<p>Und welchen Befehl hast du vor der Schleife vor dem SQL-&gt;Add(..) geschrieben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387030</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 10:40:28 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void db_eintrag()
{
 DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Clear();
</code></pre>
<p>oder was meinst du ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387031</guid><dc:creator><![CDATA[titanium]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:40:28 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 10:51:44 GMT]]></title><description><![CDATA[<p>Es wird alles ausgeführt, was Du mit Add() hinzufügst, SQL ist<br />
eine Stringliste (TStrings*). Wie Du ja schon selbst gesehen<br />
hast, wird immer mehr eingetragen. Ich nehme an, das ist es,<br />
worauf Dich alle hier aufmerksam machen wollten.<br />
Was Du dagegen tun kannst, hast Du ja auch schon selbst geschrieben...</p>
<p>Gruß</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387042</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:51:44 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 10:59:43 GMT]]></title><description><![CDATA[<p>Habe das probiert.<br />
Ich denke du meinst das-&gt;</p>
<pre><code class="language-cpp">DataModule2-&gt;SQLQuery1-&gt;SQL-&gt;Clear();
</code></pre>
<p>aber das funktioniert irgendwie nicht.<br />
Ich weiss nicht was wo machen soll.<br />
Blick leider nicht mehr durch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387053</guid><dc:creator><![CDATA[titanium]]></dc:creator><pubDate>Wed, 17 Oct 2007 10:59:43 GMT</pubDate></item><item><title><![CDATA[Reply to SQLQuery-&amp;gt; Problem??? on Wed, 17 Oct 2007 11:10:04 GMT]]></title><description><![CDATA[<p>das Problem ist wohl eher dass du die Schleife mit den Werten des <strong>SQLQuery1</strong> machst und <strong>IN</strong> der Schleife diesem Query wieder neue Befehle gibst und deshalb die eigentliche Schleife gar nicht mehr gültig ist. Verwende also einfach mal 2 SQLQuerys eins vor der Schleife und ein anderes in der Schleife...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1387067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1387067</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 17 Oct 2007 11:10:04 GMT</pubDate></item></channel></rss>