Home / Questions / How do update and update_recordset statements differ in X++?
Explanatory Question

How do update and update_recordset statements differ in X++?

👁 37 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Difference between update and update_recordset: update is used to update a single record, while update_recordset can update multiple records in a single operation:


CustTable.Name = 'New Name';
update CustTable;



update_recordset CustTable setting Name = 'New Name' where CustTable.Country == 'US';