473,508 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting up foreign key constraints in phpMyAdmin.

1 New Member
Where is Foreign key in phpmyadmin
Sep 22 '07 #1
4 16311
r035198x
13,262 MVP
Where is Foreign key in phpmyadmin
The question doesn't make much sense like that? If you are getting an error then post the error message you are getting. If you are unclear about some concept then try rephrasing your question.
Sep 22 '07 #2
pbmods
5,821 Recognized Expert Expert
Heya, Surinder.

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

phpMyAdmin does not handle foreign keys. To set up foreign key constraints on your InnoDB tables, you need to issue the SQL directly.
Sep 22 '07 #3
samuel123
7 New Member
Dear All ,
This is my first post on this forum and seeking the solution of a problem. Hope, I would certainly get from the forum.


Say, I have got Two tables. Those are..

1. users
Field in users: user_id(pk)

2. commitment
Field in commitment: user_id(fk for commitment table)

A. My question is: How should I set the relation between users and commitment tables in Phpmyadmin?

But I did the relation in commitment table this way but I am not sure of it.
Expand|Select|Wrap|Line Numbers
  1. commitment
  2. ---------------
  3. foreign key(user_id) references users(user_id); 
  4. Is this way that can I show relation between users and commitment ?
Your help would be greately.. praised.


Thank you very much for the help in advance
Samuel
Nov 21 '07 #4
f1codz
1 New Member
I have posted in details the steps required to enable setting foreign keys in phpmyadmin here : http://imdad.wordpress.com/2008/07/24/foreign-key-in-phpmyadmin-xampp/
Jul 24 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2194
by: Rajesh Kapur | last post by:
We use InnoDB tables and foreign key constraints extensively. The mysqldump backs up the database tables in alphabetical order with foreign key constraints defined in the create statement of each...
1
5251
by: Jason Madison | last post by:
We sometimes get very large databases that we want to cut down to use for testing. The information is all related to a central accounts table. The way I thought of doing this is to grab all...
13
3672
by: Bob Stearns | last post by:
Why is the following constraint invalid? I want to make sure that every row in IS3.ANIMALS_PRIV_INDEXES matches one of those in IS3.table_var_defn with part of the primary key fixed. Since this is...
0
796
by: Ratman | last post by:
I have this... Public Property MetalID() As Long Get Return lMetalID End Get Set(ByVal Value As Long) lMetalID = Value End Set End Property
1
3287
by: Jim Heavey | last post by:
Hello, I was setting the primary key on a table which was a collection of 3 columns. I mispelled the name of the second column when I built the array of collumns when I created the array of...
8
3511
by: wespvp | last post by:
I am using PostgreSQL 7.4.1 on RedHat 7.2. The query I am executing is something like (I replaced all the return values with 'count'): db=> explain select count(*) from messages m join (select...
11
10117
by: FreeToGolfAndSki | last post by:
Hi, I have an Orders Table that has Employee1 and Employee2 (one is the sales rep the other is the telemarketing rep) Both of these fields need to cascade update against the Employees table. I...
0
2684
by: mrhodes02 | last post by:
I have two simple tables Employees (primary key table) Empid, empname,title MgrXrf (foreign key table) MgrId,Empid MgrID & Empid in MgrXrf have a foreign contstrant to EmpID in Employees....
1
12037
by: Wes Groleau | last post by:
INSERT INTO X ...... ( A, B, C ) INSERT INTO Y ...... ( J, K, L ) If Y has a foreign key M which is the primary key D of X, is there an easy and/or efficient way to have SQL Server assign D,...
0
7228
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.