---
title: "sql 的 top  和 mysql中的limit"
author: "qmug"
date: "2008-10-14T16:10:28Z"
tags: []
categories: ["企业架构"]
slug: "sql-top-mysql-limit"
draft: false
lastmod: "2008-10-14T16:10:28Z"
id: 252732
url: "https://qmug.iteye.com/blog/252732"
---

同一个功能但是在两个数据库中的不同用法

这个是sql中的语句
select top 5 cid,workid from agents

这个是mysql中的语句
SELECT * FROM lnaccumulation.callslog limit 5