let sql="select * from au_role"
if(data?.name){sql+=` where name like "%?%" `}
const params=[data?.name]上面的代码就是如果data.name存在就用name进行模糊查询,我传“系统”,数据库有包含“系统”的数据,就是查不出来。
2022-07-23 02:05:00 【segmentfault】
let sql="select * from au_role"
if(data?.name){sql+=` where name like "%?%" `}
const params=[data?.name]上面的代码就是如果data.name存在就用name进行模糊查询,我传“系统”,数据库有包含“系统”的数据,就是查不出来。
sql+=` where name like "%${data.name}%" `另外,不要裸写SQL

Verilog语法基础HDL Bits训练 04

Accumulation of FPGA errors

2022.7.22 js入门 常用数据类型及其方法

博客里程碑

Easyv semi annual ranking of "popular content on official websites"

The new regulation issued the first construction certificate, and the gold content of highway and water conservancy specialty increased

opensmile简介和安装过程中遇到的问题记录

第三方依赖库 AG Grid调研分析

手把手教你在群晖中设置阿里云DDNS

Wallys/PD-60 802.3AT Input Output802.3AT/AT 85% Efficiency 10/100/1000M GE Surge Protection
How to learn MySQL efficiently and systematically?
EasyV半年度“官方网站热门内容”排行榜盘点
作物叶片病害识别系统
PNA修饰多肽Bz-Val-Gly-Arg-PNA|Boc-Val-Leu-Gly-Arg-PNA
1057 Stack
C语言课设----个人信息管理系统(包含学生成绩和消费记录)
Wallys/DR4019S/IPQ4019/11ABGN/802.11AC/high power
Easyv semi annual ranking of "popular content on official websites"
基于JMH对ArrayList和LinkedList插入操作进行性能测试
DNS and DHCP of network security foundation
QML(17)——读写txt文件
【bug 简单处理】
Teach you how to set up Alibaba cloud DDNS in Qunhui
网络安全基础之DNS与DHCP
canal 配置01
Q-Vision+Kvaser CAN/CAN FD/LIN总线解决方案
PNA PNA modified polypeptide Pro Phe Arg PNA (s-2302) | DNP Gly x l Pro Gly PNA
【无标题】
LeetCode 练习——关于二叉树的最近公共祖先两道题
PNA polypeptide suc ala ala Pro AAA PNA suc ala3 PNA Pyr Phe Leu PNA