How to Use X++ to write SQL statements
insert_recordset :
statement can insert multiple records by copying the records from one table and inserting them into another.
Ex:
insert_recordSet myTable (myNum)
select myNum
from anotherTable;
update_recordset :
Used to update multiple records at the same time.
Ex:
update_recordset salesLine
setting unitPrice = 10
where salesId =='S0001';
delete_from:
Used to delete multiple records at once with the delete_from statement.
Comments
Post a Comment