If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Update Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-04, 20:29
Shinto Shinto is offline
Registered User
 
Join Date: Jan 2004
Posts: 25
Update Help

UPDATE EMPLOYEE
SET Emp_Name ='William Brown'
WHERE Emp_Name ='Randy Brown'

Whats wrong with the above update code? i keep getting sqlstate=42601 whenever i run it. Can someone show me how to do an update statement? Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-04-04, 20:42
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: Update Help

can you post the sql message or the full error message if possible?

dollar

Quote:
Originally posted by Shinto
UPDATE EMPLOYEE
SET Emp_Name ='William Brown'
WHERE Emp_Name ='Randy Brown'

Whats wrong with the above update code? i keep getting sqlstate=42601 whenever i run it. Can someone show me how to do an update statement? Thanks.
Reply With Quote
  #3 (permalink)  
Old 02-04-04, 20:46
Shinto Shinto is offline
Registered User
 
Join Date: Jan 2004
Posts: 25
Re: Update Help

Quote:
Originally posted by dollar489
can you post the sql message or the full error message if possible?

dollar
NVM, i managed to solve the problem. Thanks anyway.
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On