Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 5th, 2013, 07:42 AM
Authorized User
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: Stone, California, Malaysia.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Problem with date/time (DD/MM/YYYY HH24:MI:SS) to copy in different row.

Evening, I got problem with Oracle code below when executed, because giving my field 'a.SAME_TABLE_DATE' null or blank.

I would like to copy a date/time (DD/MM/YYYY HH24:MI:SS) in same table and same field but different row.

UPDATE SAME_TABLE a
SET a.SAME_TABLE_DATE = (SELECT b.SAME_TABLE_DATE FROM SAME_TABLE b WHERE b.SAME_NAME = a.SAME_NAME AND b.SAME_TABLE_DISPLAYNAME = 'ROW_2')
WHERE a.SAME_TABLE_DISPLAYNAME = 'ROW_1';


Anybody help...
  #2 (permalink)  
Old December 10th, 2013, 09:32 PM
Authorized User
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: Stone, California, Malaysia.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Wenggo View Post
Evening, I got problem with Oracle code below when executed, because giving my field 'a.SAME_TABLE_DATE' null or blank.

I would like to copy a date/time (DD/MM/YYYY HH24:MI:SS) in same table and same field but different row.

UPDATE SAME_TABLE a
SET a.SAME_TABLE_DATE = (SELECT b.SAME_TABLE_DATE FROM SAME_TABLE b WHERE b.SAME_NAME = a.SAME_NAME AND b.SAME_TABLE_DISPLAYNAME = 'ROW_2')
WHERE a.SAME_TABLE_DISPLAYNAME = 'ROW_1';


Anybody help...

World pls help me...i am stuck here..
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pull Month & Year from Date(dd/mm/yyyy) istcomnet Classic ASP Basics 2 April 22nd, 2008 06:22 PM
Date dd-mm-yyyy John2112 SQL Server 2000 2 March 16th, 2007 05:15 AM
Converting short date to show mm/dd/yyyy crabjoe Access 4 March 7th, 2007 03:46 AM
Date formats... dd/mm/yyyy SeanW Classic ASP Databases 3 June 14th, 2004 12:34 PM



All times are GMT -4. The time now is 03:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.