10
Python SQL sorgu dizesi biçimlendirmesi
Bir sql sorgu dizesini biçimlendirmenin en iyi yolunu bulmaya çalışıyorum. Uygulamamda hata ayıklarken, tüm sql sorgu dizelerini dosyalamak için oturum açmak istiyorum ve dizenin uygun şekilde biçimlendirilmiş olması önemlidir. seçenek 1 def myquery(): sql = "select field1, field2, field3, field4 from table where condition1=1 and condition2=2" con = mymodule.get_connection() ... …