由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - How to defind query input obs number???
相关主题
design query for db请教一个query
What does sum(2) mean?A sql question
求教如何针对这种情况进行优化how to make query faster?
关于Acess的简单问题query estimation shows cost 900%?
一个SQL query的问题oracle JDBC thin vs. JDBC OCI
Question 2: distributed database question?再问个excel问题吧
[转载] question about SQL in Access急,SQL2005, 怎么查过去一小时里run过的所有query?
[转载] Can anyone interpret this simple SQL?Late afternoon 腦不好使
相关话题的讨论汇总
话题: query话题: entries话题: defind话题: against话题: obs
进入Database版参与讨论
1 (共1页)
r****r
发帖数: 1693
1
I have a query to run against a db with millions and millions of entries.
I'd like to test the query before running it against the entire db.
Is there a way to run the query against only the first 1000 entries?
5000 entries? X entries? Not 'LIMIT' 'TOP', they are for limitation only
on the result.
Thank you very much!!!
B*****g
发帖数: 34098
2
一看不是oracle,不会

【在 r****r 的大作中提到】
: I have a query to run against a db with millions and millions of entries.
: I'd like to test the query before running it against the entire db.
: Is there a way to run the query against only the first 1000 entries?
: 5000 entries? X entries? Not 'LIMIT' 'TOP', they are for limitation only
: on the result.
: Thank you very much!!!

j*****n
发帖数: 1781
3
SQL Server 的话除了用 top 1000, 其他的俺也不会
另,index 用对的话几百万的数据其实也没啥。
B*****g
发帖数: 34098
4
In oracle, 可以用fist n row hint, 不知道sql server有没有

【在 j*****n 的大作中提到】
: SQL Server 的话除了用 top 1000, 其他的俺也不会
: 另,index 用对的话几百万的数据其实也没啥。

1 (共1页)
进入Database版参与讨论
相关主题
Late afternoon 腦不好使一个SQL query的问题
请教一个mssql的问题Question 2: distributed database question?
parameterized queries with no inputs[转载] question about SQL in Access
Re: Recordset - I stuck! Help![转载] Can anyone interpret this simple SQL?
design query for db请教一个query
What does sum(2) mean?A sql question
求教如何针对这种情况进行优化how to make query faster?
关于Acess的简单问题query estimation shows cost 900%?
相关话题的讨论汇总
话题: query话题: entries话题: defind话题: against话题: obs