例如a=123如果a=0,sql 为 select * from table 如果a!=0,sql为select * from table where a=123如何用python实现
那如果这个table涉及多表查询,且不止一个参数要去判断呢