Autor Beitrag
okrim
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82

Win 7
C# (VS 2010 Express)
BeitragVerfasst: Sa 30.11.13 19:22 
Hallo an alle,

lese meine Datenbank folgendermaßen aus
ausblenden C#-Quelltext
1:
string sql_abfrage9 = "SELECT * FROM [gesamt_stunden_kw] WHERE kw = '" + kalenderwoche + "'";					

nur wenn ich jetzt meine Stunden von einer Kalenderwoche auslese, habe ich ein Problem wenn ich zweimal die gleiche Kalenderwoche habe einmal 2013 und 2014.
Nun meine Frage kann ich mit WHERE auch zwei Auswahlkriterien nutzen?

Vielen Dank im Voraus
Gruß Mirko
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Sa 30.11.13 20:02 
Du kannst beliebig viele Bedingungen in der WHERE Clausel mit AND oder OR verknüpfen.
okrim Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82

Win 7
C# (VS 2010 Express)
BeitragVerfasst: Sa 30.11.13 20:52 
Hallo Ralf,

danke dir ist ja mal wieder ganz einfach, hab ewig gegooglet und nichts gefunden, naja auch richtig Googlen will gelernt sein :D
Hast mir auf jeden Fall sehr geholfen.

Gruß Mirko