Skip to content

Commit

Permalink
Edited cookbook/query.zh-cn.md via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed May 18, 2011
1 parent 1389e7f commit 858fb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/query.zh-cn.md
Expand Up @@ -30,7 +30,7 @@ webpy不会尝试为您和您的数据库建立层。相反,它试图以方便
results = db.query("SELECT * FROM entries JOIN users WHERE entries.author_id = users.id")


为了防止SQL注入攻击,db.query还接受了“vars”语法如下描述[db.select](/cookbook/select):
为了防止SQL注入攻击,db.query还接受了“vars”语法如下描述[db.select](select.zh-cn):

results = db.query("SELECT * FROM users WHERE id=$id", vars={'id':10})

Expand Down

0 comments on commit 858fb66

Please sign in to comment.