开发者

implementing associations into MySQL

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜