如题所述
怎么使用preparedstatement向数据库char类型字段赋值0
1、 属性用TRIM函数处理:session.find("from TableName where TRIM(id)=?","value");
2、char改为varchar2类型
1、 属性用TRIM函数处理:session.find("from TableName where TRIM(id)=?","value");
2、char改为varchar2类型
温馨提示:答案为网友推荐,仅供参考