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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -