simcoweb
09-13-2005, 02:20 PM
I'm a newb with the MySQL syntax but i'm going through the manual trying to deal with updating a column in a MySQL table.
Table name is: affacct
Field/column name: affacct_active
I've tried this syntax:
UPDATE affacct
SET affacct_active=Y
Thinking that this is going to update the affacct_active by replacing the current entry (which is an 'A' ) into a 'Y'. Instead, I get this error:
#1054 - Unknown column 'Y' in 'field list'
I've looked at the UPDATE syntax in the MySQL documentation and can't figure what i'm doing wrong here but it's looking for the field name 'Y' instead of the field name i've designated.
A little help please?
Table name is: affacct
Field/column name: affacct_active
I've tried this syntax:
UPDATE affacct
SET affacct_active=Y
Thinking that this is going to update the affacct_active by replacing the current entry (which is an 'A' ) into a 'Y'. Instead, I get this error:
#1054 - Unknown column 'Y' in 'field list'
I've looked at the UPDATE syntax in the MySQL documentation and can't figure what i'm doing wrong here but it's looking for the field name 'Y' instead of the field name i've designated.
A little help please?
