时间:2021-07-01 10:21:17 帮助过:23人阅读
问题: 在mapper ***.xml中的sql语句中,不能直接用大于号、小于号要用转义字符
SELECT
top ${topNum}
CASE WHEN bill_type=‘FAJDSCRK01‘ THEN ‘SP_InStock‘
WHEN bill_type=‘FAJDSCRK01‘ THEN ‘SP_InStock‘
WHEN bill_type=‘FAJDSCRK01‘ THEN ‘SP_InStock‘
WHEN bill_type=‘FAJDSCRK01‘ THEN ‘SP_InStock‘
END AS formId,
‘FBillNo‘ fieldKeys,
‘F_FA_zyBillNo‘ columnName,
djno_with_prefix columnValue,
‘FStockOrgId‘ orgName,
org_kingdee orgValue
FROM
ERP_FOEN_KINGDEE_DJNO_CONTRAST
WHERE (djno_kingdee IS NULL
or djno_kingdee=‘‘) AND exe_count <=3 ;
]]>
mybatis sql语句中转义字符
标签:大于号 使用 转义字符 单引号 ref fbi from 方法 for