Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table selection #226

Open
MikeBrice opened this issue Apr 14, 2021 · 2 comments
Open

Table selection #226

MikeBrice opened this issue Apr 14, 2021 · 2 comments

Comments

@MikeBrice
Copy link

I have recently found this project and am finding it a huge help.
I have two collections of tables in the same schema each with a seperate prefix value in the table names.
I would like to dump only one of the collections of tables, that is to say all tables with names starying with 'abc_'.
I have seen that I can provuide an array of specific table names but for me it would be simper if I coule provide a table name prefix value.
Is this possible ? If so how can I acgieve this ?

Many thanks for any guidance

@smalos
Copy link
Contributor

smalos commented Apr 17, 2021

Select all tables with the "abc_" prefix, run a query and pass its result to setTableWheres()

SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = DATABASE() AND table_name like 'abc_%'

@ifsnop
Copy link
Owner

ifsnop commented Apr 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants