开发者

implementing associations into MySQL

开发者 https://www.devze.com 2023-03-06 01:23 出处:网络
suppose a PHP object is associated with another (one-to-one,many-to-many,etc), what is the best way to represent those associations in a datab开发者_C百科ase

suppose a PHP object is associated with another (one-to-one,many-to-many,etc), what is the best way to represent those associations in a datab开发者_C百科ase

I know that there are ORMs that do so, but how do these ORMs work when implementing these associations?


Through multiple tables and surrogate keys. Read this: An Introduction to Database Normalization

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号