<?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[Problem mit Parametern bei TQuery]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab folgendes Problem<br />
wie kann ich folgende abfrage am besten implementieren?:</p>
<pre><code>SELECT a FROM x WHERE y IN (1,2,3)
</code></pre>
<p>also bis jetzt habe ich manuell den string &quot;1,2,3&quot; zusammengesetzt und den dann als parameter übergeben<br />
-&gt; problem: er gibt automatisch &quot; am anfang und ende aus, da es ja ein string ist...</p>
<p>wie kann ich das umgehen oder anders wie machen, da ich ja nicht weiß wie viele nummern ich brauche?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88201/problem-mit-parametern-bei-tquery</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 05:19:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88201.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Oct 2004 13:00:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Parametern bei TQuery on Thu, 07 Oct 2004 13:00:47 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab folgendes Problem<br />
wie kann ich folgende abfrage am besten implementieren?:</p>
<pre><code>SELECT a FROM x WHERE y IN (1,2,3)
</code></pre>
<p>also bis jetzt habe ich manuell den string &quot;1,2,3&quot; zusammengesetzt und den dann als parameter übergeben<br />
-&gt; problem: er gibt automatisch &quot; am anfang und ende aus, da es ja ein string ist...</p>
<p>wie kann ich das umgehen oder anders wie machen, da ich ja nicht weiß wie viele nummern ich brauche?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/623110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/623110</guid><dc:creator><![CDATA[Errraddicator]]></dc:creator><pubDate>Thu, 07 Oct 2004 13:00:47 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Parametern bei TQuery on Thu, 07 Oct 2004 13:06:56 GMT]]></title><description><![CDATA[<p>bisschen mehr info wär schon auch gut... wo kommen denn die werte her?<br />
werden die eingegeben?</p>
<p>ne for - schleife reicht nich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/623121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/623121</guid><dc:creator><![CDATA[FrankHof]]></dc:creator><pubDate>Thu, 07 Oct 2004 13:06:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Parametern bei TQuery on Thu, 07 Oct 2004 13:14:17 GMT]]></title><description><![CDATA[<p>Errraddicator schrieb:</p>
<blockquote>
<p>-&gt; problem: er gibt automatisch &quot; am anfang und ende aus, da es ja ein string ist...</p>
</blockquote>
<p>Das wäre mir dann allerdings neu... Normalerweise muss man die Anführungszeichen explizit in den Select einfügen, respektive QuotedString() verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/623135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/623135</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 07 Oct 2004 13:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Parametern bei TQuery on Thu, 07 Oct 2004 13:17:57 GMT]]></title><description><![CDATA[<p>mein select sieht ja auch so aus:</p>
<pre><code>SELECT a FROM b WHERE c IN (:d)
//...
ParamByName = string
</code></pre>
<p>und beim umsetzen von :d macht er automatisch die &quot; am anfang und ende.<br />
das ist das problem, zumindest sagt das die Fehlermeldung</p>
<p>... blablabla<br />
Wert &quot;1, 2, 3&quot; kann nicht in Integer umgewandelt werden<br />
... blablabla</p>
<p>hab mich wohl doof ausgedrückt...</p>
<p>zur not muss ich halt das komplette kommando als string zusammensetzen, dann wäre das problem ja nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/623143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/623143</guid><dc:creator><![CDATA[Errraddicator]]></dc:creator><pubDate>Thu, 07 Oct 2004 13:17:57 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Parametern bei TQuery on Thu, 07 Oct 2004 13:24:15 GMT]]></title><description><![CDATA[<p>das kommt weil du es als String übergibst (ParamByName macht das automatisch)<br />
Ich denke ParamByName eignet sich dafür nicht... das einfachste wär wenn du den string wohl selbst zusammenbaust...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/623152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/623152</guid><dc:creator><![CDATA[FrankHof]]></dc:creator><pubDate>Thu, 07 Oct 2004 13:24:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Parametern bei TQuery on Thu, 07 Oct 2004 13:31:30 GMT]]></title><description><![CDATA[<p>hab ich jetzt auch gemacht, hätte ja nur sein können dass das irgendwie eleganter (also über parameter) geht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/623165</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/623165</guid><dc:creator><![CDATA[Errraddicator]]></dc:creator><pubDate>Thu, 07 Oct 2004 13:31:30 GMT</pubDate></item></channel></rss>