// updating the bulk records in custom object
list<Student__c> stnewlist=new list<Student__c>();
list<Student__c> stlist=[select id, name,COURSE_FEE__c,library__c from student__c where Country__c='India'];
for(Student__c st:stlist)
{
system.debug('student record is'+st);
st.COURSE_FEE__c= st.COURSE_FEE__c - st.COURSE_FEE__c+0.1;
st.E_mail_id__c='bulkrecords@bulk.com';
st.States__c='Andhra Pradesh';
st.library__c='a029000000JwWDt';
st.City__c='Vijayawada';
stnewlist.add(st);
}
update stnewlist;
Can somebody explain why this might be happening?
List<Student__c>but for some reason the code formatting on StackExchange was stripping it out. I have edited the question and now the code is displaying correctly. – BarCotter Sep 18 '14 at 11:08