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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old March 31st, 2004, 02:43 PM
nth78 nth78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 nth78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ORA-00933 Error

Here is my update statement:

UPDATE REGMART.CORPS_ORG_DIM CO
SET CO.MSC_NAME = ORG.NAME,
CO.MSC_EROC = ORG.EROC,
CO.MSC_SHORT_NAME = ORG.SHORT_NAME
FROM REGULATOR.ORGANIZATIONS@DVL2 ORG
WHERE CO.ID = ORG.ID;
--------------------------------------------------
I am getting the following error at FROM in line 5:

"ORA-00933: SQL Command not properly ended." As I said before the error is at the FROM in line 5. I have tried in both SQL Plus and TOAD. Any help is appreciated

Reply With Quote
  #2  
Old March 31st, 2004, 11:40 PM
galith_haham galith_haham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 galith_haham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 25 m 17 sec
Reputation Power: 5
Hi,

When you issue an update you define the table you are updating thus you do not need the from (and you cant use it).

Galit.

Reply With Quote
  #3  
Old April 1st, 2004, 10:02 AM
nth78 nth78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 nth78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

thanks,

I took out the from and rearranged the code and it appears to be working now.

thanks again

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > ORA-00933 Error


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