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, 01:35 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
ORacle time formatting help

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??
Nerd Newbie

Reply With Quote
  #2  
Old May 12th, 2005, 03:20 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,826 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 11 h 27 m 48 sec
Reputation Power: 278
Why don't you try to:
1. Check your spelling (
Quote:
databse ... assignmetn i haev

2. Check what you are doing (you posted in the MySQL forum an Oracle specific question)

After this you might be able to achieve some results ...

Reply With Quote
  #3  
Old May 12th, 2005, 07:19 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
buti wanted an sql querie?

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsDatabasesOracle Development > ORacle time formatting help


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 5 hosted by Hostway