update的时候,如果有些字段为空呢,怎么写
Closed this issue · 1 comments
1134506391 commented
// 更新修改文章
exports.updatePost = (values) => {
let _sql = update posts set title=?,content=?,md=? where id=?
return query(_sql,values)
}
wunci commented
是传过来的值为空吗?为空也不要紧吧