How to benchmark OpenBSD for Mysql .

2010-02-28 Thread Andres Salazar
Hello, Iam a OpenBSD user. I would like to know if there is any technique specific to the US to be able to benchmark the IO for this OS. Also, what result would be considered acceptable and what is not. Thanks!! Andres -- MySQL General Mailing List For list archives: http://lists.mysql.com/mys

Re: select daily random

2010-02-28 Thread Jason Carson
> At 08:59 PM 2/27/2010, you wrote: >>Hello everyone, >> >>How would I select a random row that changes daily? >> >>Thanks > > The common way would be to do: > > select * from table order by rand() limit 1; > > You can of course add a Where clause to select only those rows that were > added today.

Re: UNHEXING to integer (as opposed to a string)...

2010-02-28 Thread mysql.l...@juun.com
SET @string := '1a4b'; SELECT CONV(@string,16,10); +-+ | CONV(@string,16,10) | +-+ | 6731 Thanks. That works perfectly. Much appreciated. On February 28, 2010, Michael Dykman wrote: It's still a string, but this should accomplish what you

Re: UNHEXING to integer (as opposed to a string)...

2010-02-28 Thread mysql.l...@juun.com
Oops: This little bit doesn't make sense, logically: "The hex string is in little endian byte order (since it represents a 2-byte integer or short)"... What I was trying to say is that the integer that this hex string represents is multi-byte, so the order of the hex bytes **is** important..

Re: UNHEXING to integer (as opposed to a string)...

2010-02-28 Thread mysql.l...@juun.com
Oops: This little bit doesn't make sense, logically: "The hex string is in little endian byte order (since it represents a 2-byte integer or short)"... What I was trying to say is that the integer that this hex string represents is multi-byte, so the order of the hex bytes **is** important..

UNHEXING to integer (as opposed to a string)...

2010-02-28 Thread mysql.l...@juun.com
I've tried several ways to get my hex-encoded string representation of an integer to convert back to an integer, but none of them work (the input string '1a4b' should evaluate to 6731): (Note that this is not an endianness problem. The hex string is in little endian byte order (since it rep