My database has a number of fields, among them Name and Nused, both of which are VARCHAR(30) latin1_swedish_ci not_null fields. The two following SQL commands are typical of what is causing my headache, as the “Oth” text is copied correctly into the database on the INSERT command, but after the UPDATE command, while the Name fields and Get fields are changed appropriately, the Nuser field is now blank. Whatever was in it before is blanked out.
[CODE]
INSERT INTO Precord (id,iref,lref,Get,Name,Nused,Date) VALUES (0,32,197,1,’William’,’Oth’,’2009-03-03 00:00:00′)
UPDATE Precord SET Get=-1,Name=’William’,Nused=’Oth’ WHERE id=20968