两个或多个表关联,没写where条件,大量的笛卡尔值,严重时会导致数据库有问题. select * from a, b left join c on b.id = c.id left join d on c.id = d.id 多表关联查询,where条件使用各种函数,导致索引无效.数据量如果打起来以后会导致查询像蜗牛一样. select trim(d.circuitid) as circuitid, trim(d.Code) as Code, trim(d.Oldname) as Oldnam…