Skip to content
New issue

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

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

Already on GitHub? # to your account

Would like to replace all table names. Any examples? #20

Open
gitmko0 opened this issue Apr 19, 2020 · 2 comments
Open

Would like to replace all table names. Any examples? #20

gitmko0 opened this issue Apr 19, 2020 · 2 comments

Comments

@gitmko0
Copy link

gitmko0 commented Apr 19, 2020

e.g. select * from t123_terms inner join t123_abc ... inner join t123_xyz;

how do i replace t123... with abc.t123_...?

please help. thx

@huangzhiran
Copy link

https://github.com/huangzhiran/sqltableconv

I create a little program for rename sql table name. hope useful for you.

@inmylo
Copy link

inmylo commented Mar 3, 2021

@huangzhiran , you use a different package, which does parsing from scratch again and uses some things (like cursor) I don't see in a current package. Can you please create an example, which uses github.com/blastrain/vitess-sqlparser only?

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

No branches or pull requests

3 participants