ORA-00933: SQL command not closed properly

Dúvidas, dicas e truques de SQL, Select, Update, Delete, cláusulas, operações com joins, Funções em SQLs, etc
Post Reply
rhicky
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 58
Joined: Fri, 20 Jul 2007 9:48 am
Location: S. J. do Rio Preto/SP

Friends,
I need to update below. However, when running Oracle presents the message below. How to solve the problem?
ORA-00933: SQL command does not suit properly
SQL parse error location [

Select all

UPDATE pfunc 
SET DTAVISOPREVIO = (DTAVISOPREVIO+NRODIASAVISO) 
FROM PFUNC y 
WHERE y.NRODIASAVISO > 0 
AND y.TEMAVISOPREVIO = 1 
AND y.CHAPA IN ('0103027', '0103212')
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

There are over there.

Select all

UPDATE pfunc  
SET DTAVISOPREVIO = (DTAVISOPREVIO+NRODIASAVISO) 
--------------FROM PFUNC y 
WHERE NRODIASAVISO > 0 
AND TEMAVISOPREVIO = 1 
AND CHAPA IN ('0103027', '0103212')
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests