• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!