Ticket #12413: sql.txt.diff
File sql.txt.diff, 479 bytes (added by , 15 years ago) |
---|
-
docs/topics/db/sql.txt
154 154 155 155 It's tempting to write the above query as:: 156 156 157 >>> query = 'SELECT * FROM myapp_person WHERE last_name = %s' ,% lname157 >>> query = 'SELECT * FROM myapp_person WHERE last_name = %s' % lname 158 158 >>> Person.objects.raw(query) 159 159 160 160 **Don't.**