当前位置:网站首页>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}%' ";
边栏推荐
- (cvpr2020) reading of learning texture transformer network for image super resolution
- Which stock exchange has the lowest commission? Is online account manager safe to open an account
- Implementation of online number or fan query of the scene
- Creativity: Modern Art anonymous oil painting AI works presentation
- [internship] processing time
- 数据中台建设(一):数据中台出现的背景
- Function and technical principle of data desensitization [detailed explanation]
- Permanently solve Matplotlib Chinese garbled code
- Wechat applet authorized login (including obtaining basic information and binding mobile number)
- DIY can decorate the mall system, you can also have!
猜你喜欢

Implementation of logistics repair reporting system based on SSM

Typical data Lake application cases

C language file operation

Docker install MySQL 5.7

Application of AI in testing

Emergency response stack

Permanently solve Matplotlib Chinese garbled code

Installation and tutorial of MATLAB curling simulation game

Penetration test target combat SQL injection getshell

DNS domain name resolution service
随机推荐
C language: string processing function
Bond network card mode setting
Homologous strategy, surface longitude
LVGL 8.2 Span
Divide candy Huawei od JS
Project launch process of software testing technology
Huawei od maximum consumption JS
Day008 select structure (switch statement)
Pandora IOT development board learning (RT thread) - Experiment 16 WiFi module experiment (learning notes)
Current characteristics of steering gear with great resistance
Serial adder / subtracter
Beijing University of Posts and telecommunications | RIS assisted in-house multi robot communication system joint deep reinforcement learning
I want to ask you a question. I want to synchronize the database, but I think it is synchronized according to MySQL binlog. If it is a large table, one
DIY can decorate the mall system, you can also have!
Spirng security (VIII) multiple filter chains coexist
Nested if selection structure and switch selection structure
Original | ueditor1.4.3-asmx bypasses WAF
[matlab] solve the mex error there was a problem creating the mex file for real time execution, please ensure y
考研经历
Press the switch for the minimum number of times to turn on all lights