实现多对多修改时需要更新主表信息,下列( )语句格式是正确的?
A.update * from 表名 where id=#{id}
B.update from 表名 where id=#{id}
C.update 表名 from 表名
D.update 表名 set 列名=值,…… where id=#{id}
正确答案是D
实现多对多修改时需要更新主表信息,下列( )语句格式是正确的?
A.update * from 表名 where id=#{id}
B.update from 表名 where id=#{id}
C.update 表名 from 表名
D.update 表名 set 列名=值,…… where id=#{id}
正确答案是D