Get the App
SLTechnology News&Howtos  ›  Development  › 

Examples of expressions commonly used in ThinkPHP Where conditions

Shulou Source: shulou.com Published: 2022-06-03 19:40:25 10月02日 Update

This article focuses on "examples of commonly used expressions in ThinkPHP Where conditions". Interested friends may wish to have a look at them. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "examples of commonly used expressions in ThinkPHP Where conditions".

The Where conditional expression format is:

$map ['field name'] = array ('expression', 'operation condition')

Where $map is a normal array variable that can be named according to your needs. The expression in the above format is actually the meaning of the operator:

ThinkPHP operator and SQL operator compare table TP operator SQL operator example actual query condition eq=$map ['id'] = array (' eq',100); equivalent: $map ['id'] = 100 id' = array (' neq',100); id! = 100gt > $map ['id'] = array (' gt',100); id > 100egt > = $map ['id'] = array (' egt',100); id > = 100ltsave ($data) At this point, I believe you have a deeper understanding of "examples of commonly used expressions in ThinkPHP Where conditions". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Conditions expressions operators operations commonly used examples actual data arrays support examples content fields characters strings formats learning queries synthesis complexity Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Huawei MariaDB Shulou Tech Info