Home > Database > Mysql Tutorial > sql之表的表达式

sql之表的表达式

WBOY
Release: 2016-06-07 17:37:17
Original
1140 people have browsed it

1、派生表 实质:就是特殊的子查询(将查询结果放在from后面) 含有一张Order表: 看下面的sql语句: orderid,orderdate,custid ( orderid,orderdate,custid,ROW_NUMBER() ) as t -- 表名必须起别名

1、派生表

实质:就是特殊的子查询(将查询结果放在from后面)

含有一张Order表:

看下面的sql语句:

orderid,orderdate,custid ( orderid,orderdate,custid,ROW_NUMBER() ) as t--表名必须起别名

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