<?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[How to use Foreign Key concept ?]]></title><description><![CDATA[<p dir="auto">Hi team,</p>
<p dir="auto">I want to use a foreign key in reference with a primary key of another table.</p>
<p dir="auto">For one of my local projects, i'm using a sql server user table where all the unique ids are stored(primary key). And in another table, im using foreign key to reference that unique ids to ensure only registered users are allowed.</p>
<p dir="auto">I tried with <strong>Linked field (by reference) datatype</strong>. But still, i can able to insert records which are not part of primary key.</p>
<p dir="auto">Please guide me to achieve that scenario.</p>
]]></description><link>https://community.appdrag.com/topic/277/how-to-use-foreign-key-concept</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 08:32:38 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/277.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Aug 2020 09:43:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use Foreign Key concept ? on Tue, 04 Aug 2020 14:39:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@Joseph-Benguira</a>,</p>
<p dir="auto">Thanks. Will give a try.</p>
]]></description><link>https://community.appdrag.com/post/1027</link><guid isPermaLink="true">https://community.appdrag.com/post/1027</guid><dc:creator><![CDATA[vinoth kumar]]></dc:creator><pubDate>Tue, 04 Aug 2020 14:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to use Foreign Key concept ? on Tue, 04 Aug 2020 10:46:01 GMT]]></title><description><![CDATA[<p dir="auto">Hey Vinoth,</p>
<p dir="auto">Our DB UI don't have an option to enfore foreign key,<br />
but it's something you can do with our query executor (New Query) since we are 100% compatible with MySQL and it's a standard feature of MySQL.</p>
<p dir="auto">Example to add a foreign key:</p>
<pre><code>ALTER TABLE Orders
ADD FOREIGN KEY (PersonID) REFERENCES Persons(PersonID);
</code></pre>
<p dir="auto">More details here:<br />
<a href="https://www.w3schools.com/sql/sql_foreignkey.asp" rel="nofollow ugc">https://www.w3schools.com/sql/sql_foreignkey.asp</a></p>
]]></description><link>https://community.appdrag.com/post/1023</link><guid isPermaLink="true">https://community.appdrag.com/post/1023</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Tue, 04 Aug 2020 10:46:01 GMT</pubDate></item></channel></rss>