thinkphp getField 只返回一行的数据

经过解析后getField的sql语句中自带了limit 1

示例

[pcsh lang="php" tab_size="4" message="" hl_lines="" provider="manual"]

SELECT `id` FROM `cul_userinfo` WHERE `name` LIKE '%黄%' OR `team` LIKE '%黄%' LIMIT 1

[/pcsh]

 

 

 

此处评论已关闭