Bonjour,
j'ai un tableau contenant le nom des champs d'une table et j'aimerais pouvoir comparer ces champs entre 2 tables :
ex :
table1 a une colonne 'colonne1' et 'colonne2'
table2 a une colonne 'colonne1' et 'colonne3'
evidemment ca ne marche pas mais comment pourrais-je utilisé la valeur de mon tableau comme nom de champs a comparer?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 TYPE table_define_nameType IS TABLE OF VARCHAR2(40) INDEX BY BINARY_INTEGER; table_define_name table_define_nameType; BEGIN . table_define_name(1) := 'colonne1' if table1.table_define_name(1) = table2.table_define_name(1) . . END;
quelqu'un a une idée?
merci
Partager