0
|
插眼达不溜Lv4见习互助发布于2021-10-29 10:14(编辑于 2021-10-29 10:23)
|
sql咋写的 where条件,SQL这样写才行,多选得用IN 这个也不能忘
|
-
用户Csrpm3369394(提问者)
- SELECT * FROM EMPLOYEE
WHERE 1=1
${if(len(sf) == 0,\"\",\"and ORIGIN = \'\" + sf + \"\'\")}
${if(len(zzmm) == 0,\"\",\"and POLITICAL = \'\" + zzmm + \"\'\")}
${if(len(xb) == 0,\"\",\"and SEX = \'\" + xb + \"\'\")}
and DATE(BIRTHDATE)>=\'${rq}\'
|
|