vitess-sqlparser icon indicating copy to clipboard operation
vitess-sqlparser copied to clipboard

Would like to replace all table names. Any examples?

Open gitmko0 opened this issue 5 years ago • 2 comments

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

gitmko0 avatar Apr 19 '20 21:04 gitmko0

https://github.com/huangzhiran/sqltableconv

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

huangzhiran avatar Oct 28 '20 11:10 huangzhiran

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

inmylo avatar Mar 03 '21 14:03 inmylo