SELECT * FROM ( SELECT 'B01' PD, SECONE_ID,SECONE_NAME FROM INPUT_DIM_SJZD WHERE FIRST_ID = 'A05' AND SECONE_ID IN('B04','B05') UNION ALL SELECT 'B02' PD, SECONE_ID,SECONE_NAME FROM INPUT_DIM_SJZD WHERE FIRST_ID = 'A05' AND SECONE_ID IN('B04','B05') UNION ALL SELECT 'B03' PD, SECONE_ID,SECONE_NAME FROM INPUT_DIM_SJZD WHERE FIRST_ID = 'A05' AND SECONE_ID IN('B06','B07') ) A WHERE PD = '${L3}' 这是我的sql,这个L3是单元格参数,我把这一段放到sql的查询里就会无法识别,请问这个该如何使用 |