开发者社区 问答 正文

sql的运行报错求解决!!!!!!!!!!!!!!!!!!!! ?报错

update(

select t.hosid t_hosid,t.devid t_devid,c.hosid chosid,c.devid cdevid,c.checkflag checkflag from

ccyl_tran_2iccd t,boc_tran_csp c where c.checkflag is null and (t.iccd_time||t.iccd_flow) = c.iccd_traceno and

t.tranday=c.tran_day) set chosid=t_hosid,cdevid=t_devid,checkflag='2';

sql运行报错 :无法修改与非键值保存表对应的列。有没有高手解决,万分感谢

展开
收起
爱吃鱼的程序员 2020-06-23 14:46:43 371 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    http://blog.csdn.net/dbcommando/article/details/7635017
    需要定义主键

    2020-06-23 14:47:01
    赞同 展开评论
问答分类:
SQL
问答地址: