• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORA-00932: inconsistent datatypes: expected NUMBER got INTERVAL DAY TO SECOND

 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's my error from SQL*PLUS



that was my query and the problem is



tmc_stamp was DATE but I need to show hours and minute so I change the column type to TIMESTAMP

does anyone have any suggestion how I can resolve this issue?

thanks
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a solution by using EXTRACT function in Oracle, it works for intervals or date


This solves my issue.

Thanks for reading
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic