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

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

藏色散人
藏色散人forward
2020-06-16 13:24:567858browse

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete