Aquí tiene sun error...
Código Delphi
[-]DataModule2.ZQuery.SQL.Add('UPDATE cash set cash= 500 WHERE id = cristian');
cristian debería estar entrecomillado o ser un parámetro que luego rellenaras.
Código Delphi
[-]DataModule2.ZQuery.SQL.Add('UPDATE cash set cash= 500 WHERE id = ''cristian'' ');
o
Código Delphi
[-]DataModule2.ZQuery.SQL.Add('UPDATE cash set cash= 500 WHERE id = :cristian');
DataModule2.ZQuery.Params... := 'cristian';