我在尝试使用nativeSQL更新数据时遇到此错误。这是我的脚本:updateweight_note_receiptsetpledge_id=:pledgewherewn_idin(:wns)wns是包含超过1个wn_id的字符串,如下所示:222,226,228,251,256,262,263,264,265,266,267,272,281,286,294,296,299,301,302,303,306,307,330,332,333,337,338,339,341,368,371,376,377,378,379,380,381,385,391,397,423,424,443,452
我将HibernateJPA和Spring与Mysql数据库一起使用,我想使用如下SQL语句进行插入:DatesaveDate=newDate();java.sql.TimestamptimeStampDate=newTimestamp(saveDate.getTime());QuerypersistableQuery=entityManager.createNativeQuery("INSERTINTOTASK_ASSESSMENT(ACTIVE_FLAG,ASSESSMENT_DATE,DESCRIPTION,"+"TITLE,NEEDS_LEVEL_ID,PATIENT_ID,U