Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a3d2a1c57e
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.401 kB
layout title
default
web.query()

web.query()

used to send a SQL statement to the database.

    # store everything in the sql statement
    clean_query = str(
        'UPDATE ' + clean_update + 
        ' SET ' + clean_column + " = '" + clean_value.encode(output_charset) + 
        "' WHERE " + clean_where
    )
    # execute
    web.query(clean_query)
Jump to Line
Something went wrong with that request. Please try again.