Jump to content

phpmyadmin keys


EchoFool

Recommended Posts

Hey there,

 

I curious to know if there was a way to link foreign keys to your main table in such a way that when you delete the row from the main table your database can auto delete the foreign keys from other tables ?

 

An example:

user_table:

  UserID  | Name |

    2      |  bleh  |

 

user_items:

UserID | Quantity | ItemID | RecordID

  2      |  3        |    2    |  956

 

 

Now if i delete User ID 2 from user_table is it possible for phpmyadmin to also delete UserID 2 from user_items and any other table which is interlinked like this ?

 

I can't find out how to do it on phpmyadmin, i was told you go to :

 

Click on the table you want

Click on the structures tab

Below the fields you should see a relation view

Which i did but all it shows me is information of the table nothing else.

 

Hope you can help me out.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.