Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TransBase, Select all tables containing a given column

Tags:

transbase

I need to query statement to list all tables from a database containing a given column name in TransBase.

Thank you very much in advance.

like image 572
Redi Avatar asked Jan 25 '26 03:01

Redi


1 Answers

select * from syscolumn col inner join systable tbl on tbl.segno=col.tsegno where col.cname like '%col_name%';

That was quick! For everybody that might need this in future.

like image 69
Redi Avatar answered Jan 26 '26 23:01

Redi