Question
Hi.
i would like to parse a kind of query like:
select * from a inner join b on a.col1 == b.col1 inner join c on b.col2 == c.col2 where a.col3 = 1 and b.col4 = 5
and i got two *ast.BinaryOperationExpr of the where clause a.col3 = 1 and b.col4 = 5. however, that expression only contained *ast.ColumnNameExpr and *driver.ValueExpr and ignored the *ast.TableSource.
may i know how to get the table names?
thanks
Question
Hi.
i would like to parse a kind of query like:
and i got two
*ast.BinaryOperationExprof the where clausea.col3 = 1 and b.col4 = 5. however, that expression only contained*ast.ColumnNameExprand*driver.ValueExprand ignored the*ast.TableSource.may i know how to get the table names?
thanks