I am trying to check cross join by query expression. For example i have the following query.
string query="select t1.c1, t2.c2" from t1,t2";
this query will cross join both t1 and t2 table. i have tried the following way to check.
string query="select t1.c1, t2.c2" from t1,t2";
var rx = new Regex(@"\from\s\t1(.*)\,\t2");
if(rx.Match(query)){return "cross-join"}
but my regular expression caught error. i couldn't understand where i went wrong because i am new in regex in c#. Is there any other way to check cross join in c#