SQL只找到第一条记录 [英] SQL to find only the first record

查看:840
本文介绍了SQL只找到第一条记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望SQL仅找到第一个满足查询条件的记录,然后停止进一步搜索以优化查询.虽然有多个满足查询条件的记录.

[edit]仅标题-OriginalGriff [/edit]

I want SQL to find only the first record satisfying query and then stop further search for query optimization.While there are multiple records satisfying query.

[edit]Title only - OriginalGriff[/edit]

推荐答案

取决于您使用的SQL类型.看看此Wikipedia条目. [
Depends on what type of SQL you are using. Take a look at this wikipedia entry.[^]


这篇关于SQL只找到第一条记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆