Home » SQL & PL/SQL » SQL & PL/SQL » SQL Update
SQL Update [message #1238] Sat, 13 April 2002 21:09 Go to next message
Terry Corridan
Messages: 2
Registered: April 2002
Junior Member
I am having trouble with the following statement. Can you please tell me what is wrong? I get an "invalid column name" error for STAR.DIED. Thanks Terry.

UPDATE
(SELECT STAR.STARDIED
FROM MOVSTAR, MOVIE, STAR
WHERE MOVIE.YRMDE=1948 AND
STAR.STARNUMB=MOVSTAR.STARNUMB AND
MOVIE.MVNUMB=MOVSTAR.MVNUMB AND
MOVIE.DIRNUMB=2)
SET STAR.STARDIED = 2000;
Re: SQL Update [message #1249 is a reply to message #1238] Sun, 14 April 2002 23:37 Go to previous message
Epe
Messages: 99
Registered: March 2002
Member
Hello,

I think your syntax should be like this :

update TABLENAME
set FIELDNAME = VALUE
where WHERE-CLAUSE

Success,

epe
Previous Topic: Who has created the procedure?
Next Topic: Re: Inserting a rowtype variable into a table
Goto Forum:
  


Current Time: Fri Apr 26 17:39:57 CDT 2024