thinkphp打印执行的sql

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

      echo M()->getlastsql();

posted @ 2014-06-14 14:26  纵观  阅读(1770)  评论(0编辑  收藏  举报