sql - What is the use of """...""" in python instead of "..." or '...', especially in MySQLdb cursor.execute -
is there difference if use """..""" in sql of cusror.execute. if there slight difference please tell
it's used split query on many lines format nicely:
db.query(""" select * employee, department employee.departmentid = department.departmentid; """)
also using """..."""
around string allows not escape "
, '
inside string.
Comments
Post a Comment