query2 = "SELECT Wert FROM Stati WHERE Status NOT Like '%schlossen' and Wert IN ('Fenster_Estrich_rot', 'Fenster_Estrich_weiss')"
DB_Zeiger.execute(query2)
query2 = "SELECT Wert FROM Stati WHERE Status NOT Like '%schlossen' and Wert IN (%s)"
IN_Bedingung = "'Fenster_Estrich_rot', 'Fenster_Estrich_weiss'"
DB_Zeiger.execute(query2, IN_Bedingung)
query = "SELECT Wert FROM Stati WHERE Status NOT Like '%schlossen' and Wert IN (%s, %s)"
bedingung = ['Fenster_Estrich_rot', 'Fenster_Estrich_weiss']
zeiger.execute(query, bedingung)
@Sirius3 Besten Dank für das Beispiel, wie mach ich das nun, wenn ich die Anzahl der Werte im IN dynamisch / unterschiedlich ist (z.B.: mal 4 mal 10)?
Gibt es dafür auch noch einen (einfachen) Weg?
Please call it what it is: copyright infringement, not piracy. Piracy takes place in international waters, and involves one or more of theft, murder, rape and kidnapping. Making an unauthorized copy of a piece of software is not piracy, it is an infringement of a government-granted monopoly.
Please call it what it is: copyright infringement, not piracy. Piracy takes place in international waters, and involves one or more of theft, murder, rape and kidnapping. Making an unauthorized copy of a piece of software is not piracy, it is an infringement of a government-granted monopoly.