Bonjour,

J'execute la requete suivante
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
UPDATE INFO"
 
    ."SET duree = to_char(to_date((to_date(TO_CHAR(SYSTIMESTAMP, 'HH24:MI:SS'),'HH24:MI:SS')"
    ." - to_date(substr(heuredebut,0,8),'HH24:MI:SS'))*86400,'sssss'),'hh24:mi:ss')";
Parfois ça fonctionne bien; Mais parfois j'ai l'erreur suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
ORA-01830: date format picture ends before converting entire input string (DBD ERROR: error possibly near <*> indicator at char 215 in 'UPDATE INFO statut duree = to_char(to_date((to_date(TO_CHAR(SYSTIMESTAMP, 'HH24:MI:SS'),'HH24:MI:SS') - to_date(substr(heuredebut,0,8),'HH24:MI:SS'))<*>*86400,'sssss'),'hh24:mi:ss') ')
Je travaille avec Oracle 9i
Merci