java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]在此上下文
中不允许使用子查询。只允许使用标量表达式。
Statement ps1=con.createStatement();
String ab="insert into wnr_goodsinfo (ID,WNR_GoodsName) VALUES ('"+eidxxx+"',(select GoodsName from wz_goodsinfo where SysID='"+eidxxx+"'))";
ps1.executeUpdate(ab);
ps1.close();
帮忙提供解决方法啊。如果不能带子查询我改怎么写