You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def getTableName(sql):
result = set()
tokens = re.split(r"[\s)(;`]+", sql.upper())
get_next = False
for tok in tokens:
if get_next:
if tok not in ["", "SELECT"]:
result.add(tok)
get_next = False
get_next = tok in ['INTO','FROM','JOIN']
return result
hi ~ If provide an SQL parameter, how to get the SQL tablename?
thanks ~
The text was updated successfully, but these errors were encountered: