Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit a6f5a86e
authored
Jun 22, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3984 from pranavrajs/master
[ci skip]
📝
Fixed errors in query
2 parents
377587a8
07867486
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
docs/docs/querying.md
docs/docs/querying.md
View file @
a6f5a86
...
...
@@ -21,7 +21,7 @@ Post.findAll({
status: active
}
});
// SELECT * FROM post WHERE authorId = 12
// SELECT * FROM post WHERE authorId = 12
AND status = 'active';
Post.destroy({
where: {
...
...
@@ -31,7 +31,7 @@ Post.destroy({
// DELETE FROM post WHERE status = 'inactive';
Post.update({
dele
tedAt: null,
upda
tedAt: null,
}, {
where: {
deletedAt: {
...
...
@@ -39,7 +39,7 @@ Post.update({
}
}
});
// UPDATE post SET updatedAt = null WHERE
upda
tedAt NOT NULL;
// UPDATE post SET updatedAt = null WHERE
dele
tedAt NOT NULL;
```
### Operators
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment