Ticket #12413: sql.txt.diff

File sql.txt.diff, 479 bytes (added by Manuel Saelices, 15 years ago)
  • docs/topics/db/sql.txt

     
    154154
    155155    It's tempting to write the above query as::
    156156
    157         >>> query = 'SELECT * FROM myapp_person WHERE last_name = %s', % lname
     157        >>> query = 'SELECT * FROM myapp_person WHERE last_name = %s' % lname
    158158        >>> Person.objects.raw(query)
    159159
    160160    **Don't.**
Back to Top