不要怂,就是干,撸起袖子干!

Commit 8762758d by Ali Taheri

[docs] Added example for sequelize.where

1 parent 2ec7baac
Showing with 5 additions and 0 deletions
......@@ -106,6 +106,11 @@ Post.update({
}
});
// UPDATE post SET updatedAt = null WHERE deletedAt NOT NULL;
Post.findAll({
where: sequelize.where(sequelize.fn('char_length', sequelize.col('status')), 6)
});
// SELECT * FROM post WHERE char_length(status) = 6;
```
### Operators
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!