Hi.
On Thu, Apr 19, 2001 at 05:41:54PM +0200, [EMAIL PROTECTED] wrote:
> Hallo Leute,
>
> in Oracle kann man Indizes in einer Abfrage abschalten(Full-Table-Scan). Mit +0 oder
>||''.
> z.B.:
>
> SELECT *
> FROM tabelle
> WHERE eigenschaft||'' = 'text';
>
> SELECT *
> FROM tabelle
> WHERE id+0 = 1;
>
>
> Geht das bei mySQL auch?
You can answer that yourself. Compare the following:
EXPLAIN SELECT * FROM tabelle WHERE id = 1;
EXPLAIN SELECT * FROM tabelle WHERE id+0 = 1;
and you will see that the second query, won't use the index.
Bye,
Benjamin.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php