://www.mysql.com/certification
For technical support contracts, visit https://order.mysql.com/?ref=msal
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia
://order.mysql.com/?ref=msal
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com
--
MySQL General Mailing List
=msal
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com
--
MySQL General Mailing List
For list archives
Joshua,
Joshua Spoerri wrote:
On Tue, 5 Aug 2003, Alexander Keremidarski wrote:
MySQL will never use any index for small tables. With just few rows using index
adds overhead only. Table scan is faster in such cases. This is docummented behaviour.
is 100,000 rows small? my simple OR queries
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http
on your real data.
--
MySQL Conference and Expo 2003 http://www.mysql.com/events/uc2003/index.html
For technical support contracts, visit https://order.mysql.com/?ref=msal
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED
mysqld starting option.
If you still have concerns, please don't hesitate to share them with us.
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED
handle
it with live server or not.
--
Best regards
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
-
Before posting, please
) |
+-+
| 199.19 |
+-+
--
Best regards
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full
. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
-
Before posting, please check
/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
:
SELECT (@var1 := 1999) as ... WHERE YEAR(filing_date) = (@var1 := 1999)
but don't believe it will save you any effort.
--
Best regards
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski
/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
' AND
'2002-02-12';
will be valid statement :)
--
Best regards
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
be any valid expression
--
Best regards
--
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
Hi,
Jasmin Bertovic wrote:
cut
For example;
SELECT number as current_day, (number - prevnumber)
as change_from_prev_day FROM TABLE ORDER BY DATE
prevnumber is the reference that I need from the
previous row.
Am I missing something simple or do I have to do this
outside of MYSQL?
1. Yes you
://order.mysql.com/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Mr. Alexander Keremidarski [EMAIL PROTECTED]
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
___/ www.mysql.com M: +359 88 231668
Description:
When WHERE clause contains OR mysql don't any keys and don't perorm
validity check even.
USE KEY directive does not change this.
How-To-Repeat:
create table t (
a int unsigned,
b int unsigned,
key(a),
key(b));
insert about 2000 random rows
select count(*) from t;
2048
1.
22 matches
Mail list logo