MySql supports Random Data Query

Source: Internet
Author: User
Tags timestamp to date mysql index

In mysql, rand () can be used for random search.

Example [Query 10 data records randomly in the tt_dvjobs table]

Select * from 'tt _ dvjobs' order by rand () LIMIT 0, 10;

Practice has proved that modifying the function will cause very low query performance. Please use this function with Caution !!!

Articles you may be interested in
  • How to query data of mysql today, yesterday, last 7 days, last 30 days, last month, and last month
  • MySQL index Operation Command (create index, re-index, query index, delete index) Summary
  • Summary of the causes and solutions for slow mysql Server Query
  • Mysql converts unix timestamp to date format, and MySQL queries the current time
  • Mysql queue for efficient Concurrent Data Reading
  • MySQL uses limit 1 to improve query efficiency
  • Jquery provides the ability to load data as the scroll bar scrolls.
  • How does mysql export data of a field in a table?

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.