View Single Post
  #2 (permalink)  
Old 12-21-08, 13:11
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
You can try using cast:

Code:
select current, current::datetime hour to hour from
systables where tabid=1
If you need int type as result, you can use couple more of casts:

Code:
select current, current::datetime hour to hour::char(2)::int from
systables where tabid=1
HTH

Last edited by ibm.ids; 12-21-08 at 15:14.
Reply With Quote