Home  >  Article  >  php教程  >  thinkphp sql: thinkphp sql 单一数据查询。

thinkphp sql: thinkphp sql 单一数据查询。

WBOY
WBOYOriginal
2016-06-21 08:49:49994browse

oracle 中使用 model 查询 会自动 插入字段 num 分页
剔除方法为
$TASK_ID=$model->where($map)->order('TASK_ID desc,task_submit_time desc')->limit("0,1")->getField('TASK_ID',true);
limit("0,1")  //第一行
getField('TASK_ID',true);  //数据唯一
本文链接http://www.cxybl.com/html/wlbc/Php/20130522/37982.html



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn