Jump to content

relationships in mysql


ohitsme

Recommended Posts

hi,

i know when ive used ms access, i could set it up so i could do something like (i have forgotten the syntax of mssql so this is mysql language)

 

select table1.title,table2.amount from table1 where table1.id=123

 

(ie, set it up so it knows what the primary and foreign keys are, and not require any join statements or where table1.id = table2.prodid)

 

is there any way to set up things like this in mysql?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/133954-relationships-in-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.