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

Reply
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 July 4th, 2005, 02:13 AM
ayhanozgul ayhanozgul is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 3 ayhanozgul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 16 sec
Reputation Power: 0
convert function in the sql

CONVERT(varchar(10),having_date,104) AS having_date

in sql i covert the date field 01.02.2005 00:00:00 to 01.02.2005
how can i do this in oracle

Reply With Quote
  #2  
Old July 6th, 2005, 09:16 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 21 sec
Reputation Power: 48
Look up the to_date() function.

Reply With Quote
  #3  
Old July 22nd, 2005, 07:18 PM
michaeljshannon michaeljshannon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 26 michaeljshannon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 38 m 15 sec
Reputation Power: 0
Quote:
Originally Posted by ayhanozgul
CONVERT(varchar(10),having_date,104) AS having_date

in sql i covert the date field 01.02.2005 00:00:00 to 01.02.2005
how can i do this in oracle

having_date := to_date( '01/02/2005', 'MM/DD/YYYY' );

or

v_date := '01/02/2005';
having_date := to_date( v_date, 'MM/DD/YYYY' );

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > convert function in the sql


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