TP 查询某一条件字段 并 排序
例:
SELECT `content` FROM `app_sms_statistics` WHERE ( mobile= "15300330047" ) ORDER BY time DESC LIMIT 1
$sms_statistics = M("sms_statistics"); $sms_statis = $sms_statistics->order("time DESC")->where("mobile= ".""$phone"")->getField("content"); echo $sms_statistics->getlastsql();
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。