<?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[DB - Insert]]></title><description><![CDATA[<p>Also, mal wieder nen tolles Problem, wahrscheinlich hab ich was vergessen:</p>
<p>Ich will Daten in einer Datenbank einfügen, wenn ich das erste Mal auf den Button drücke, geht es, beim 2. Mal kommt dann so ein schöner Fehler:</p>
<p>Project1 Project.exe raised exception class EDBEngineError with message 'Key violation.'. Process stopped.</p>
<pre><code class="language-cpp">Table3-&gt;Insert();
Table3-&gt;FieldByName(&quot;IP&quot;)-&gt;AsString = Edit1-&gt;Text;
Table3-&gt;Post();
</code></pre>
<p>Habs auch schon mit Table3-&gt;Open und Close probiert, hat nichts gebracht. Ist bestimmt ne Kleinigkeit die ich vergessen hab.</p>
<p>Viele Grüße</p>
<p>Rudi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123345/db-insert</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 03:14:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123345.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Oct 2005 17:38:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 17:38:21 GMT]]></title><description><![CDATA[<p>Also, mal wieder nen tolles Problem, wahrscheinlich hab ich was vergessen:</p>
<p>Ich will Daten in einer Datenbank einfügen, wenn ich das erste Mal auf den Button drücke, geht es, beim 2. Mal kommt dann so ein schöner Fehler:</p>
<p>Project1 Project.exe raised exception class EDBEngineError with message 'Key violation.'. Process stopped.</p>
<pre><code class="language-cpp">Table3-&gt;Insert();
Table3-&gt;FieldByName(&quot;IP&quot;)-&gt;AsString = Edit1-&gt;Text;
Table3-&gt;Post();
</code></pre>
<p>Habs auch schon mit Table3-&gt;Open und Close probiert, hat nichts gebracht. Ist bestimmt ne Kleinigkeit die ich vergessen hab.</p>
<p>Viele Grüße</p>
<p>Rudi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/892981</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/892981</guid><dc:creator><![CDATA[Rudi R.]]></dc:creator><pubDate>Sat, 15 Oct 2005 17:38:21 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 18:39:00 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>das bedeutet das du mit dem neuen Datensatz einen eindeutigen Schlüssel doppelt vergeben willst.<br />
Was für Keys hast du denn für die Tabelle definiert?</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893025</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 15 Oct 2005 18:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 18:55:34 GMT]]></title><description><![CDATA[<p>sry, hab von Keys im zusammenhang mit Datenbanken noch nie was gehört</p>
<p>EDIT:</p>
<p>Hab gerade rausgefunden, dass das immer nur bei doppelten Einträgen passiert, also wenn ich z.b. 2x &quot;hallo&quot; einfüge, passiert das. Kann man das bei DB gar nicht machen, ich möchte z.B. ein Spalte User haben und eine Logs, wo dann alle Logs für den User hinkommen oder sowas. Halt in einer Spalte öfters den gleichen Eintrag.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893032</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893032</guid><dc:creator><![CDATA[Rudi R.]]></dc:creator><pubDate>Sat, 15 Oct 2005 18:55:34 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 19:30:53 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>das geht schon, du must nur schauen das du auf dem besagten Feld kein Unique-Key hast. Oder das du ein anderes Feld hast, das Unique ist, dem du aber keinen Wert zuweist.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893064</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 15 Oct 2005 19:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 19:36:51 GMT]]></title><description><![CDATA[<p>Letzte Frage in dem Zusammenhang: Was bedeutet Unique?</p>
<p>Und danke für deine Hilfe,</p>
<p>Gruß</p>
<p>Rudi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893067</guid><dc:creator><![CDATA[Rudi R.]]></dc:creator><pubDate>Sat, 15 Oct 2005 19:36:51 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 19:46:55 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>das für dieses Feld jeder Wert nur ein einziges Mal vorkommen darf (unique = einzigartig). Das benutzt man meistens für Keys, nach denen schnell sortiert werden soll.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893074</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 15 Oct 2005 19:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 20:03:46 GMT]]></title><description><![CDATA[<p>Das Feld IP was ich da ändern will ist das erste Feld in der DB. Also einfach z.B. eine Spalte ID hinzufügen als Index?</p>
<p>Gruß</p>
<p>Rudi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893088</guid><dc:creator><![CDATA[Rudi R.]]></dc:creator><pubDate>Sat, 15 Oct 2005 20:03:46 GMT</pubDate></item><item><title><![CDATA[Reply to DB - Insert on Sat, 15 Oct 2005 20:09:50 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>jain. Das kannst du sicher machen. Und machs gleich Integer und Auto-Increment.<br />
Aber die Fehlermeldung kommt wegen eines <em>bestehendes</em> Unique/Key-Feldes.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893091</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 15 Oct 2005 20:09:50 GMT</pubDate></item></channel></rss>