|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
displaying date/time fields
need help displaying full date/time field in DBartisan for Oracle....
selecting data for date/times between 13:00 and 21:30 but display jonly shows DATE but not timestamp. thanks |
|
#2
|
|||
|
|||
|
By default Oracle stores timestamp 00:00:00 if not provided by the user. You need to use TO_CHAR function to retrieve your required date format, lets see the example below:
SELECT empno,ename,sal,deptno,TO_CHAR(hiredate,'DD-Mon-YYYY HH24:MI:SS') FROM emp; / If you need to execute such a query that requires only timestamp then ommit date portion, only use timestamp, let's see another query: SELECT empno,ename,sal,deptno,TO_CHAR(hiredate,'HH24:MI:SS') FROM emp / |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > displaying date/time fields |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|