tMyTable use index

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
777Yves
Posts: 37
Joined: Mon 09 Aug 2010 19:55
Location: Québec

tMyTable use index

Post by 777Yves » Mon 07 Feb 2011 15:22

Hi, how could I force a specific index with a tMyTable ?
I don't want to use a something that order locally, I want to use index that are already define like in:

Code: Select all

mysql> SELECT * FROM table1 USE INDEX (key1)
WHERE key1=1;
Perhaps the answer is simply use a tMyQuery instead.

Thanks

AndreyZ

Post by AndreyZ » Tue 08 Feb 2011 15:01

Hello,

You are right, you can use such syntax only in the TMyQuery component.

Post Reply