第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

ORA-00907: 使用 Java 中的 % 通配符時缺少右括號

ORA-00907: 使用 Java 中的 % 通配符時缺少右括號

BIG陽 2021-06-01 13:50:22
在我%在LIKE子句中使用通配符之前,我遇到的查詢工作正常。:-這很好(從 Java 打?。?select acc.*, service.*     from com_accounts acc     left join com_subscriptions service on acc.cust_id = service.cust_id    where 1=1 and  UPPER(acc.first_name) LIKE UPPER(?)這引發(fā)了一個錯誤(從 Java 代碼打?。?select acc.*, service.*     from com_accounts acc     left join com_subscriptions service on acc.cust_id = service.cust_id     where 1=1 and  UPPER(acc.first_name) LIKE UPPER('%'?'%')java.sql.SQLSyntaxErrorException: ORA-00907: 缺少右括號
查看完整描述

2 回答

?
PIPIONE

TA貢獻1829條經(jīng)驗 獲得超9個贊

梅伯使用CONCAT函數(shù)你可以解決你的答案。


select acc.*, service.* 

    from com_accounts acc 

    left join com_subscriptions service on acc.cust_id = service.cust_id 

    where 1=1 and  UPPER(acc.first_name) LIKE UPPER(CONCAT('%',?,'%'))


查看完整回答
反對 回復 2021-06-02
  • 2 回答
  • 0 關(guān)注
  • 142 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號