Bonjour,
J'essaye de parcourir mes tables pour transformer mes float en number.
Pouvez-vous m'aider à réaliser cette manœuvre ?

J'ai tenté ceci, mais je crois que je me perd en conjoncture :
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
16
17
18
19
20
21
22
23
 
DECLARE 
  CURSOR c1 IS
    SELECT table_name FROM user_tables WHERE table_name NOT LIKE '%MDRT%' ;
BEGIN
   OPEN c1; 
   LOOP
      CURSOR c2 IS
      select COLUMN_NAME, DATA_TYPE   from user_tab_columns  where table_name = c1.table_name;
 
      BEGIN
      OPEN c2; 
        LOOP
 
        -- si datas.data_type = float alors modifier en number(38,2) 
 
        END LOOP;
    CLOSE c2;
    END;
 
   END LOOP;
   CLOSE c1;
END;
Merci de votre aide.