On Wednesday 01 January 2003 15:28, Jocelyn Fournier wrote:

> I'm trying to use to following HANDLER syntax :
>
> HANDLER tbl_name READ index_name=(value1);
>
> However I fail since I don't know what is 'index_name' for a PRIMARY KEY (I
> already tried PRIMARY, `PRIMARY KEY`, and the column name without success).
>
> Any idea ?

`PRIMARY` works fine for me:

mysql> handler a read `PRIMARY` = (3);
+----+-----------+
| id | companyid |
+----+-----------+
|  3 |         5 |
+----+-----------+
1 row in set (0.02 sec)
        

> BTW, are HANDLER statements cached by the query cache ?

No, only SELECTs are cached.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





---------------------------------------------------------------------
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

Reply via email to