Hi,
I have a table with 2 laksh records.
If i use rand() in mysql query it takes approximately 1.5 seconds to run
So i use mt_rand(1, 200000)
It returns most of the times results in 1,000,00s
The query is like this.
$query = "SELECT * FROM tbl WHERE Length(word) > 6 AND id >= $id";
Which brings almost same result every time.
The table is english words table. I want to get words more than 6 letter
How to write better query with almost best random fetch.?