Yes. However, as I stated, this functionality needs to be adjusted to yoru specific requirements. The basic approach woudl be
Code:

IF (SELECT COUNT(*) FROM table WHERE attribute='aaa') THEN
UPDATE attribute(s)
ELSE
INSERT new row


Please be aware that the example above represents pseudo-code.
_________________________
There are two types of vessels, submarines and targets.