- Insert
- Update
- Upsert
- Delete
- Undelete
DML Examples
[php]public class DMLExamples {
//insert demo
public static void insertdemo(){
list<Account> accList= new list<Account>();
for ( integer i=0;i<160;i++)
{
Account a= new Account();
a.Name=’DML160R’;
a.AccountNumber=’123432344′;
acclist.add(a);
}
insert accList;
}
}[/php]
Recent Comments