Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 12th, 2005, 07:22 AM
sap sap is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 53 sap User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 46 m 10 sec
Reputation Power: 4
time display

i have 2 create a databse for an assignmetn i haev created it inserted all the data, then when i was chekign the data one of the fields ios totally wrong, the time field which i thought i had set up correctly is not workng here is cone of the insert statements and its result


INSERT INTO ClientOrder
(Order#, DateOfDelivery, TimeOfDelivery, ClientID)
VALUES
('001','01-JUN-2005',TO_Date('12:00', 'HH24:MI'),'0000000004');
i want it to display the time here ^^^^^^^ but its displays it like this

ORDER# DATEOFDEL TIMEOFDEL CLIENTID
------ --- - -------- ----------
1 01-JUN-05 01-MAY-05 4

the time field is displayed as a month not as 12:00 as i would like it 2, if anyone knows how i can fix it let me know please, and to fix it i just update the fields yeh??

Reply With Quote
  #2  
Old May 13th, 2005, 04:10 AM
mmurali11 mmurali11 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 20 mmurali11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 33 m 32 sec
Reputation Power: 0
Hai friend

First you change the data type varchar2 to 'TimeOf Delivery' Column, and then you execute following query

INSERT INTO ClientOrder
(Order#, DateOfDelivery, TimeOfDelivery, ClientID)
VALUES
('001','01-JUN-2005','12:00','0000000004');

Reply With Quote
  #3  
Old May 14th, 2005, 12:57 AM
sap sap is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 53 sap User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 46 m 10 sec
Reputation Power: 4
thanx for the help, that sounds simple enought i tried 2 do it the complicated way

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsDatabasesOracle Development > time display


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT