是否可以直接用更新总结一列?
原始 SQL:
UPDATE table SET likes = likes + 1 WHERE id=1
SqlKata 代码:
q.From("table") _
.Where("id", 1) _
.AsUpdate(new With {
.likes = 1
})
是否可以直接用更新总结一列?
原始 SQL:
UPDATE table SET likes = likes + 1 WHERE id=1
SqlKata 代码:
q.From("table") _
.Where("id", 1) _
.AsUpdate(new With {
.likes = 1
})