---
title: "sql 语言的执行顺序"
author: "clgoogle"
date: "2013-03-20T10:47:04Z"
tags: []
categories: ["数据库"]
slug: "sql"
draft: false
lastmod: "2013-05-18T13:14:02Z"
id: 1832424
url: "https://clgoogle.iteye.com/blog/1832424"
---

select tmp\_tb.\*,ROWNUM row\_id from （select * from docter）tmp\_tb where ROWNUM&lt;5

 

 

先执行from  接着是where    最后是select  接着是列取别名

[![](http://time-earn.com/images/125.gif)](http://time-earn.com/?ref=clgoogle)