How can I retrieve the row just inserted?
INSERT INTO LETTRE_VOIT select rsVoit.NOID, NO_ORDRE, rsOrdre.CODE_DEST, rsOrdre.MODAL_MODE, rsOrdre.MODAL_PORT, CA
If you are using SQL Server
And you know how many row inserted then go through
SELECT top 2 * FROM LETTRE_VOIT order by primaryKeyId desc
put the number of row inserted at place of 2.
2
It may be help you, If you know the number of inserted rows, and then you can provide the numbers with top keyword