实现多对多修改时需要更新主表信息,下列( )语句格式是正确的?

分类: SSM第十一单元 发布时间: 2024-01-21 04:23 浏览量: 1

实现多对多修改时需要更新主表信息,下列( )语句格式是正确的?

A.update * from 表名 where id=#{id}

B.update from 表名 where id=#{id}

C.update 表名 from 表名

D.update 表名 set 列名=值,…… where id=#{id}

正确答案是D