Java 如何在jdbc/derby中连接两个varchar?

Java 如何在jdbc/derby中连接两个varchar?,java,sql,jdbc,netbeans,derby,Java,Sql,Jdbc,Netbeans,Derby,我想在JDBC/Derby中运行这段代码,但我得到了以下错误。我如何在JDBC中处理它 代码: 错误者: The '+' operator with a left operand type of 'VARCHAR' and a right operand type of 'VARCHAR' is not supported. Derby使用|操作符来压缩字符串(如Oracle): 与SQL标准类似;)@我不知道这是SQL标准的一部分。谢谢你的洞察力。SQL:2011基金会,第5.2部分( 和

我想在JDBC/Derby中运行这段代码,但我得到了以下错误。我如何在JDBC中处理它

代码:

错误者:

The '+' operator with a left operand type of 'VARCHAR' and a right operand type of 'VARCHAR' is not supported.

Derby使用
|
操作符来压缩字符串(如Oracle):


与SQL标准类似;)@我不知道这是SQL标准的一部分。谢谢你的洞察力。SQL:2011基金会,第5.2部分(<代码> <代码>和<代码> <代码>)
The '+' operator with a left operand type of 'VARCHAR' and a right operand type of 'VARCHAR' is not supported.
SELECT ID, Namee || " " || Family AS NameS
FROM Students