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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -