Home  >  Article  >  Database  >  SQL 必知必会笔记10联结表

SQL 必知必会笔记10联结表

WBOY
WBOYOriginal
2016-06-07 17:39:221003browse

可伸缩(scale) 能够适应不断增加的工作量而不失败。设计良好的数据库或应用程序 称为可伸缩性好(scale well)。 联结(JOIN) 联结(JOIN)是一种机制,用来在一条SELECT 语句中关联表,因此称为联结 创建联结 创建联结非常简单,指定要联结的所有表以及关联

可伸缩(scale)

能够适应不断增加的工作量而不失败。设计良好的数据库或应用程序 称为可伸缩性好(scale well)。

联结(JOIN)

联结(JOIN)是一种机制,用来在一条SELECT 语句中关联表,,因此称为联结

 

创建联结

创建联结非常简单,指定要联结的所有表以及关联它们的方式即可:

1 SELECT vend_name, prod_name, prod_price 2 FROM Vendors, Products 3 WHERE Vendors.vend_id = Products.vend_id;

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