Bonjour,
Je ne sais pas si cela est possible mais dans le cadre d'un rapport,
j'aurai besoin d'obtenir sur l'output les paramètres utiliser pour ma requête:
Par exemple, pour la requete suivante, j'aurai besoin d'obtenir sur ma sortie les paramètre param.login, param.datedebut.[mm/dd/yyyy] param.datefin.[mm/dd/yyyy] utilisés.
Ma première démarche a été de créer une table fonctionnant comme la table dual sous oracle
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 SELECT (select label from category where category_id = a.category_id) AS category, a.title AS title, a.rie AS rie, a.sd7 AS sd7, f.specifieddate AS [specified date], p.budget AS [budget(days)], sum (f.spenttime) * 8 AS nbheure FROM activity AS a, planification AS p, followup AS f WHERE 1=1 and a.activity_id = p.activity_id and p.activity_id = f.activity_id and f.user_id = (select user_id from user where login = param.login) and f.specifieddate between param.datedebut.[mm/dd/yyyy] and param.datefin.[mm/dd/yyyy] GROUP BY title, specifieddate, rie, sd7, p.budget, category_id ORDER BY specifieddate;
afin d'essayer de jouer avec pour obtenir mes paramètres mais j'avoue que cela fait environ 1h que je bidouille et bidouille sans obtenir quelquechose de concluant. Quelqu'un aurait-il une piste ?DUAL is a table automatically created by Oracle along with the data
dictionary. DUAL is in the schema of the user SYS, but is accessible by the
name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1),
and contains one row with a value 'X'. Selecting from the DUAL table is
useful for computing a constant expression with the SELECT statement.
Because DUAL has only one row, the constant is returned only once.
Merci d'avance, F.ORTIZ
Partager