"SELECT
* FROM
dbo.Reservation, dbo.telephone, dbo.Salles
WHERE
(Reservation.NoPersonne
= telephone.ref)
AND
(Salles.NoSalle = Reservation.NoSalle)
AND
Reservation.dodp
= '" + Replace(Variable1,
"'", "''") + "'
AND DateFin
>= '" + Replace(Variable2, "'", "''")
+ "'
AND DateFin
<= '" + Replace(Variable3, "'", "''")
+ "'
ORDER BY
DateDebut"
----------------------------------
listStr
= "SELECT
ANO_problems.id, ANO_problems.title, ANO_problems.start_date,
ANO_problems.prob_uid, ANO_problems.uemail, ANO_problems.applications,
ANO_problems.type_prob, ANO_problems.category, ANO_tblUsers.uid
AS ruid, ANO_priority.pname, ANO_status.sname, ANO_categories.cname,
ANO_type.typename, ANO_applications.appliname "
& _
"FROM
ANO_problems, ANO_tblUsers, ANO_priority, ANO_status, ANO_applications,
ANO_categories, ANO_type WHERE
(ANO_problems.rep = ANO_tblUsers.sid)AND
(ANO_problems.priority = ANO_priority.priority_id)AND
(ANO_problems.status = ANO_status.status_id) AND (ANO_problems.applications
= ANO_applications.appli_id) AND (ANO_problems.category = ANO_categories.category_id)
AND (ANO_problems.type_prob = ANO_type.type_id)"
listStr
= listStr &
"
AND
ANO_problems.id=" &
Request.QueryString("id")
Il
est possible de rallonger une requette en additionnant la variable
sur elle même. Cette méthode peut être utile
pour faire une requette dynamique (sous condition).
Pour aller à la ligne utilisez : &
_
Pour faire une somme : &
|