<?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[Variable an SQL übergeben]]></title><description><![CDATA[<p>Hallo,</p>
<p>wer kann mir sagen, wie ich am einfachsten eine Variable an eine<br />
SQL Anweisung übergeben kann ?</p>
<p>z.B.</p>
<p>CString MyString = &quot;suchbegriff%&quot;;</p>
<p>Ungefähr so, funtz nur leider nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /><br />
SELECT ID, Titel FROM Tabelle WHERE Titel LIKE MyString</p>
<p>Wenn ich es ausschreibe ist es kein Problem.<br />
Ist nur leider sehr unflexibel.<br />
SELECT ID, Titel FROM Tabelle WHERE Titel LIKE '%b%'</p>
<p>Gruß,</p>
<p>Webby.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/57995/variable-an-sql-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Tue, 02 Jun 2026 16:33:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/57995.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Dec 2003 15:33:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Variable an SQL übergeben on Tue, 09 Dec 2003 15:33:52 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wer kann mir sagen, wie ich am einfachsten eine Variable an eine<br />
SQL Anweisung übergeben kann ?</p>
<p>z.B.</p>
<p>CString MyString = &quot;suchbegriff%&quot;;</p>
<p>Ungefähr so, funtz nur leider nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /><br />
SELECT ID, Titel FROM Tabelle WHERE Titel LIKE MyString</p>
<p>Wenn ich es ausschreibe ist es kein Problem.<br />
Ist nur leider sehr unflexibel.<br />
SELECT ID, Titel FROM Tabelle WHERE Titel LIKE '%b%'</p>
<p>Gruß,</p>
<p>Webby.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/411957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/411957</guid><dc:creator><![CDATA[webby]]></dc:creator><pubDate>Tue, 09 Dec 2003 15:33:52 GMT</pubDate></item><item><title><![CDATA[Reply to Variable an SQL übergeben on Tue, 09 Dec 2003 15:37:47 GMT]]></title><description><![CDATA[<p>&quot;SELECT ID, Titel FROM Tabelle WHERE Titel LIKE '&quot; + MyString + &quot;'&quot;<br />
Kann man bestimmt nur schlecht erkennen, daher:<br />
'&quot; ist ' und &quot;<br />
&quot;'&quot; ist &quot; und ' und &quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/411962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/411962</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Tue, 09 Dec 2003 15:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to Variable an SQL übergeben on Tue, 09 Dec 2003 16:10:23 GMT]]></title><description><![CDATA[<p>Einfach genial einfach.</p>
<p>besten Dank.</p>
<p>Gruß,</p>
<p>Webby.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/411994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/411994</guid><dc:creator><![CDATA[webby]]></dc:creator><pubDate>Tue, 09 Dec 2003 16:10:23 GMT</pubDate></item></channel></rss>