<?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[Sonderzeichen in SQL Query]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>Ich versuch momentan Daten aus einer Access Datenbank auszulesen. Das Problem ist allerdings, daß zwei meiner Tabellen WE-Prüfung und B-Teile heißen. Hier bekomme ich einen Syntaxfehler. Dies liegt wohl an den Sonderzeichen ( ö und -). Gibt es hier eine andere Möglichkeit außer die Tabelle umzubennen?</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
     int AnzSpalten=6;

     Query-&gt;Close();
     Query-&gt;SQL-&gt;Clear(); 
     Query-&gt;SQL-&gt;Add(&quot;select * from WE-Prüfung where WE_ID=26&quot;);
     Query-&gt;Open();
     Query-&gt;First(); 

     while (!Query-&gt;Eof) 
     { 
           for (int i=0;i&lt;=AnzSpalten;i++) 
           { 
               Memo1-&gt;Lines-&gt;Add(Query-&gt;Fields-&gt;Fields[i]-&gt;AsString);
           } 
           Query-&gt;Next(); 
     } 

}
</code></pre>
<p>MfG Stephan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/87554/sonderzeichen-in-sql-query</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 07:18:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/87554.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Oct 2004 08:16:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 08:16:59 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>Ich versuch momentan Daten aus einer Access Datenbank auszulesen. Das Problem ist allerdings, daß zwei meiner Tabellen WE-Prüfung und B-Teile heißen. Hier bekomme ich einen Syntaxfehler. Dies liegt wohl an den Sonderzeichen ( ö und -). Gibt es hier eine andere Möglichkeit außer die Tabelle umzubennen?</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
     int AnzSpalten=6;

     Query-&gt;Close();
     Query-&gt;SQL-&gt;Clear(); 
     Query-&gt;SQL-&gt;Add(&quot;select * from WE-Prüfung where WE_ID=26&quot;);
     Query-&gt;Open();
     Query-&gt;First(); 

     while (!Query-&gt;Eof) 
     { 
           for (int i=0;i&lt;=AnzSpalten;i++) 
           { 
               Memo1-&gt;Lines-&gt;Add(Query-&gt;Fields-&gt;Fields[i]-&gt;AsString);
           } 
           Query-&gt;Next(); 
     } 

}
</code></pre>
<p>MfG Stephan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/618607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618607</guid><dc:creator><![CDATA[_Stephan_]]></dc:creator><pubDate>Fri, 01 Oct 2004 08:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 08:33:53 GMT]]></title><description><![CDATA[<p>Hast Du mal versucht die Tabellennamen in Hochkommas zu setzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/618622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618622</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 01 Oct 2004 08:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 09:14:07 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>@Joe_M.</p>
<p>Ich habs bisher mit Hochkomma ' bzw Anführungszeichen &quot; versucht, jedoch ohne Erfolg.</p>
<p>MfG Stephan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/618651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618651</guid><dc:creator><![CDATA[_Stephan_]]></dc:creator><pubDate>Fri, 01 Oct 2004 09:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 09:22:11 GMT]]></title><description><![CDATA[<p>Mit BCH6 TQuery und Access 97 funktioniert das in Anführugnszeichen setzen ohne Probleme. Das ungültige Zeichen ist übrigens das Minus-Zeichen...</p>
<pre><code>SELECT * FROM &quot;WE-Beleg&quot;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/618661</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618661</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 01 Oct 2004 09:22:11 GMT</pubDate></item><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 10:17:04 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>@Joe_M.</p>
<p>Also ich verwende auch noch Access 97 jedoch noch BCB4 Pro, bekomme allerdings demnächst den BCB6 Pro. Werde es dann damit mal versuchen, und mich nochmals melden.<br />
Vielen Dank für deine Hilfe.</p>
<p>MfG Stephan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/618707</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618707</guid><dc:creator><![CDATA[_Stephan_]]></dc:creator><pubDate>Fri, 01 Oct 2004 10:17:04 GMT</pubDate></item><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 10:55:47 GMT]]></title><description><![CDATA[<p>Setz die Tabelle doch mal in [].. zumindest ist das so bei SQL angesagt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/618730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618730</guid><dc:creator><![CDATA[MikeSPK]]></dc:creator><pubDate>Fri, 01 Oct 2004 10:55:47 GMT</pubDate></item><item><title><![CDATA[Reply to Sonderzeichen in SQL Query on Fri, 01 Oct 2004 11:02:42 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1319">@MikeSPK</a><br />
Vielen dank für den Hinweis.<br />
Mit den eckigen Klammern funktioniert es nun.</p>
<pre><code class="language-cpp">Query-&gt;Close();
        Query-&gt;SQL-&gt;Clear();
        Query-&gt;SQL-&gt;Add(&quot;select WE_ID, Anzahl_Los, Lieferversuch, TTNr from [WE-Prüfung] where WE_ID=:WeId&quot;);
        Query-&gt;ParamByName(&quot;WeId&quot;)-&gt;Value = StrToInt(Edit1-&gt;Text);
        Query-&gt;Open();
        Query-&gt;First();
</code></pre>
<p>MfG Stephan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/618735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/618735</guid><dc:creator><![CDATA[_Stephan_]]></dc:creator><pubDate>Fri, 01 Oct 2004 11:02:42 GMT</pubDate></item></channel></rss>