我想在JDBC / Derby中运行此代码但是我得到了以下错误。我如何在JDBC中处理它?</ p>
代码:
SELECT ID,Namee+ " " + Family AS NameS
FROM Students
Errorr:
The '+' operator with a left operand type of 'VARCHAR' and a right operand type of 'VARCHAR' is not supported.
答案 0 :(得分:5)
Derby使用||
运算符来连接字符串(如Oracle):
SELECT ID, Namee || " " || Family AS NameS
FROM Students