Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

how to extract time from datetime column

$
0
0

Hi

i need to extract time from datetime column:-

 

tried to_char('1900-01-01 19:10:00.000','HH:MM:SS') but it is showing NULL

 

cast('1900-01-01 19:10:00.000','time') but it is showing full datetime in column

 

for eg:- 1900-01-01 19:10:00.000

 

result expected :- 19:10:00.000

 

regards


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>