Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-DB] rand()
-------------- Original message from blackwater dev : --------------
> select * from clients order by RAND()
>
> THe query runs fine on my local server but when I run it on my hosts
> server, it works ok if there is only one record in the db but then
> there is more than one...I get this error:
>
> #1 - Can't create/write to file '/var/tmp/#sqlbe_1d99_0.MYI' (Errcode: 2)
>
> What's going on?

perror 2 returns "Error code   2:  No such file or directory"

Does /var/tmp exist on the server?

If you run explain on your query in both cases (with one record and with mor
e than one record) you will see that when there is more than one record it i
s probably using temporary tables and file sort, but is not when there's onl
y one record.

Report this thread to moderator Post Follow-up to this message
Old Post
Jennifer Goodie
09-30-04 01:03 AM


Re: [PHP-DB] rand()
I have no idea of it is on the server or now...I just have access to
my little section of the server.  Is there another way to randomly
order?


On Wed, 29 Sep 2004 23:27:43 +0000, Jennifer Goodie <jgoodie@att.net> wrote:
> -------------- Original message from blackwater dev : -------------- 
>
> perror 2 returns "Error code   2:  No such file or directory"
>
> Does /var/tmp exist on the server?
>
> If you run explain on your query in both cases (with one record and with m
ore than one record) you will see that when there is more than one record it
 is probably using temporary tables and file sort, but is not when there's o
nly one record.
>

Report this thread to moderator Post Follow-up to this message
Old Post
Blackwater Dev
09-30-04 07:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:38 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.