throw new Exception(db.GetCommand(q).CommandText); q为var的变量 转载于:https://www.cnblogs.com/portalsky/archive/2008/11/09/1330232.html