mysql将一个表的数据更新到另一个表中_sql将一个表中的某一列数据更新到另一个表中...

代码如下updateaseta.latesprice=b.amountfromT_CONDETAILEDa,(selectb.amountfromt_tempb)bwhereb.conNo=a.conNumber)报的错误是:Causedby:java.sql.SQLException:ORA-00933:SQLcom...

代码如下

update a set a.latesprice = b.amount from T_CONDETAILED a,(select b.amount from t_temp b) b where b.conNo=a.conNumber)

报的错误是:

Caused by: java.sql.SQLException: ORA-00933: SQL command not properly ended

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)

at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:744)

at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:206)

at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:956)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)

at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1695)

at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1661)

at com.kingdee.bos.sql.shell.KDStatement.execute(KDStatement.java:360)

at com.apusic.jdbc.adapter.StatementHandle.execute(Unknown Source)

at com.kingdee.eas.util.app.DbUtil.execute(DbUtil.java:255)

... 21 more

帮帮忙,我看了好久不知错在哪

update a set a.latesprice = b.amount from T_CONDETAILED a,(select b.amount from t_temp b) b where b.conNo=a.conNumber

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值