当前位置:网站首页>GetData table table data join MySQL method
GetData table table data join MySQL method
2022-07-25 04:19:00 【51CTO】
Example a :
$u = $_M['table']['user'];
$o = $_M['table']['shopv2_order'];
$d = $u.' Left JOIN '.$o." ON {$u}.id = {$o}.uid";
Example 2 :join find_in_set
$u = $_M['table']['user'];
$a = $_M['table']['my_application'];
$d = $u.' Left JOIN '.$a." ON find_in_set({$u}.id,{$a}.user_id) != 0";
Be careful :
1、 List all the data
$data = $this->table->getdata($table, '*', $where, $order)
2、 List only the specified field data
$array = $table->getdata($d, "{$u}.username,{$u}.groupid", $where, $order);
3、 Fuzzy query
$where = "{$u}.lang='{$_M['lang']}' and {$u}.username like '%{$term1}%' ";
边栏推荐
- Oracle uses FY_ recover_ Data recover truncate deleted data
- Shell programming (script) (variable)
- Definition and basic terms of tree
- Wechat applet experiment case: simple idiom dictionary
- GDAL image resampling
- Chapter 3 business function development (modify the remarks of market activities)
- Homologous strategy, surface longitude
- Kubesphere 3.3.0 offline installation tutorial
- Current characteristics of steering gear with great resistance
- ADS1256 debugging notes based on stm32hal Library
猜你喜欢

Sales system of infant products based on SSH

DNS resolution experiment

ES (8.1) certification topic

Student thinking vs workplace thinking
![Function and technical principle of data desensitization [detailed explanation]](/img/bb/5890d8fd140982ea7b994942093cc7.png)
Function and technical principle of data desensitization [detailed explanation]

Pandora IOT development board learning (RT thread) - Experiment 16 WiFi module experiment (learning notes)

ECCV 2022 | rethinking image blending for data enhancement in vision transformers

Localization distillation for dense object detection cvpr2022

EMQ Yingyun technology was successfully selected into the 2022 "cutting edge 100" list of Chinese entrepreneurs

Wechat applet experiment case: simple idiom dictionary
随机推荐
ES (8.1) certification topic
Use "display: flex; justify content: Center; align items: Center;" Solve the problem that the streaming grid layout cannot be centered
C language file operation
After the failure of listing in Hong Kong, tuba rabbit terminated its gem IPO, and the founder responded
Niuke interview high frequency list (group 1) difficulty: simple & medium
Simple understanding of RPC
Modbus poll/slave simulator tutorial
Wechat applet authorized login (including obtaining basic information and binding mobile number)
Typical data Lake application cases
Emergency response stack
Oracle uses FY_ recover_ Data recover truncate deleted data
Debezium series: optimize cluster parameters and support personalized settings of debezium connector
Server status code
Win11 experience
Huawei cloud from entry to actual combat | cloud rapid site establishment service and enterprise host security service
Day008 select structure (switch statement)
Impala2.12 environmental installation
Wechat applet experiment case: simple idiom dictionary
Deeply understand the connection state and reliable mechanism of TCP protocol
Advanced numbers | [calculus of multivariate function] chain derivation method, implicit function derivation method, total differential form invariance, multivariate function extremum