Home > PHP Framework > ThinkPHP > Expression abbreviations such as eq, neq, gt, lt in Thinkphp

Expression abbreviations such as eq, neq, gt, lt in Thinkphp

藏色散人
Release: 2020-06-16 13:24:56
forward
7880 people have browsed it

The following tutorial column of thinkphp framework will introduce to you the abbreviations of expressions such as eq, neq, gt, lt in Thinkphp. I hope it will be helpful to friends in need!

Expression abbreviations such as eq, neq, gt, lt in Thinkphp

Abbreviations of expressions such as eq, neq, gt, lt in Thinkphp

  • ##eq is equal to equal

  • neq is not equal to

  • ##gt is greater than
  • egt is greater than or equal to
  • lt less than less than
  • ##elt less than or equal to
  • like LIKE
  • between BETWEEN
  • notnull IS NUT NULL
  • null IS NULL
  • /*thinkphp in another question Reply*/

egf represents database field comparison, not string comparison
  • For example:

$map['name'] = array('eq','label');

and

$map['name'] = array('eqf','label'); respectively represents name = 'label'

and

name = labelFor the same reason, other expressions such as gt lt can also be added with f at the end to represent the same function~

The above is the detailed content of Expression abbreviations such as eq, neq, gt, lt in Thinkphp. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template