python sqlparse_使用sqlparse解析表名、超级强大、支持子查询、左联接等,tablename,leftjoin...
importsqlparsefromsqlparse.sqlimportIdentifierList,Identifierfromsqlparse.tokensimportKeyword,DML#支持的join方式ALL_JOIN_TYPE=('LEFTJOIN','RIGHTJOIN','INNERJOIN','FULLJOIN','LEFTOUTERJOIN','FULLOUTERJOIN')