thinkphp打印执行的sql

  打印下执行的sql,也就是在执行add或save语句下面写下:

      echo M()->getlastsql();

原文地址:https://www.cnblogs.com/xiamibk/p/3788253.html