Oracle Sample Statement Learning (ii) Introduction to SEED statements

Source: Internet
Author: User
Tags hash sorts

For ordinary sample statements, the results that Oracle returns each time are not fixed:

Sql> SELECT object_id from T SAMPLE (0.01);

object_id

----------

35199

Execution plan

----------------------------------------------------------

Plan Hash value:2767392432

----------------------------------------------------------------------------

| Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time |

----------------------------------------------------------------------------

| 0 |      SELECT STATEMENT |     |    5 |   85 | 157 (2) | 00:00:02 |

|  1 | TABLE ACCESS sample|     T |    5 |   85 | 157 (2) | 00:00:02 |

----------------------------------------------------------------------------

Statistical information

----------------------------------------------------------

1 Recursive calls

0 db Block gets

Consistent gets

0 physical Reads

0 Redo Size

411 Bytes sent via sql*net to client

385 bytes received via sql*net from client

2 sql*net roundtrips To/from Client

0 Sorts (memory)

0 Sorts (disk)

1 rows processed

Sql> SELECT object_id from T SAMPLE (0.01);

object_id

----------

2013

5637

16087

18032

21327

27788

38549

40479

44344

49347

10 rows have been selected.

Execution plan

----------------------------------------------------------

Plan Hash value:2767392432

----------------------------------------------------------------------------

| Id | Operation | Name | Rows | Bytes | Cost (%CPU) | Time |

----------------------------------------------------------------------------

| 0 |      SELECT STATEMENT |     |    5 |   85 | 157 (2) | 00:00:02 |

|  1 | TABLE ACCESS sample|     T |    5 |   85 | 157 (2) | 00:00:02 |

----------------------------------------------------------------------------

Statistical information

----------------------------------------------------------

0 Recursive calls

0 db Block gets

Consistent gets

0 physical Reads

0 Redo Size

530 Bytes sent via sql*net to client

385 bytes received via sql*net from client

2 sql*net roundtrips To/from Client

0 Sorts (memory)

0 Sorts (disk)

Ten rows processed

Sql> SELECT object_id from T SAMPLE (0.01);

object_id

----------

21949

This column more highlights: http://www.bianceng.cn/database/Oracle/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.