Home  >  Article  >  Backend Development  >  表连接与外键连接有什么区别?

表连接与外键连接有什么区别?

WBOY
WBOYOriginal
2016-06-06 20:42:191647browse

表连接与外键连接有什么区别?

回复内容:

表连接与外键连接有什么区别?

表连接是table join的query,执行sql的时候

外键是表间的存在的关系

表连接是多表查询时候,不同的表里有关系字段的连接,是你通过sql来控制的
外键是一种约束,是dbms管理的,如果一个表里的一个字段的外键是另一个表里的字段值,那么dbms会检查合法性

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn