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

WBOY
Release: 2016-06-06 20:42:19
Original
1658 people have browsed it

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

回复内容:

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

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

外键是表间的存在的关系

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!