get table name not including view

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
anwar5218
Posts: 11
Joined: Tue 13 Dec 2005 11:02

get table name not including view

Post by anwar5218 » Thu 21 Dec 2006 11:22

how to get all table name in database not include "view" and Not using "like" pattern?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 22 Dec 2006 16:40

You can try to execute the following command with a TMyQuery object:

Code: Select all

SHOW TABLE STATUS FROM db_name
Value for the `Engine` field is an empty string for views. So you can perform local filtering by this field:

Code: Select all

MyQuery.Filter := 'Engine = ''''';

Post Reply