用PreparedStatment执行INSERT语句报错:ORA-12704
类似下面的代码:
String sql = "INSERT INTO my_table(col) VALUES (?)";
PreparedStatment ps = ........
String val = getFieldValue();
ps.setString(1, val);
ps.executeUpdate();
......
数据库: Oracle
执行之后报ORA-12704的错,谁碰到过?怎么解决?
问题点数:50、回复次数:3Top
1 楼zliang82(扁头)回复于 2004-08-04 17:15:25 得分 2
ORA-12704是什么错误啊?至少有个描述吧,这样谁知道出了什么问题啊?Top
2 楼Veeve()回复于 2004-08-04 18:02:50 得分 0
ORA-12704:字元不符合Top
3 楼zhujianwu2008(憧憬2008)回复于 2004-08-12 18:03:56 得分 48
ORA-12704 character set mismatch
Cause: One of the following:
The string operands (other than an NLSPARAMS argument) to an operator or built-in function do not have the same character set.
An NLSPARAMS operand is not in the database character set.
String data with character set other than the database character set is passed to a built-in function not expecting it.
The second argument to CHR() or CSCONVERT() is not CHAR_CS or NCHAR_CS.
Top




