22. maj 2003 - 23:12Der er
5 kommentarer og 1 løsning
Flere WHERE i SELECT-sætning
Hvordan gør man det ?
Set dcounter = Server.CreateObject ("ADODB.Recordset") dcounter.Open "SELECT COUNT (transmision) AS dtransmision from mybase WHERE Transmision ='Diesel' AND Anvendelse LIKE " & soegestreng & "", database dtransmision = dcounter.fields("dtransmision")
Set dcounter = Server.CreateObject ("ADODB.Recordset") dcounter.Open "SELECT COUNT (transmision) AS dtransmision from mybase WHERE Transmision ='Diesel' AND Status =1 AND Anvendelse LIKE " & soegestreng & "", database dtransmision = dcounter.fields("dtransmision")
Set dcounter = Server.CreateObject ("ADODB.Recordset") dcounter.Open "SELECT COUNT (transmision) AS dtransmision from mybase WHERE Status =1 AND Transmision ='Diesel' AND Anvendelse LIKE " & soegestreng & "", database dtransmision = dcounter.fields("dtransmision")
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.