The request was good
select id, (select id_arret from noeuds n where st_within(st_startpoint(p.geometry), st_buffer(n.geometry, 1))) n_deb, (select id_arret from noeuds n where st_within(st_endpoint(p.geometry), st_buffer(n.geometry, 1))) n_fin from polylignes p;
select id, (select id_arret from noeuds n where st_within(st_startpoint(p.geometry), st_buffer(n.geometry, 1))) n_deb, (select id_arret from noeuds n where st_within(st_endpoint(p.geometry), st_buffer(n.geometry, 1))) n_fin from polylignes p;
I followed the steps advised by https://gis.stackexchange.com/users/93656/thingumabob and it iI get usefukluseful results. I changed the multilinestrin inmultilinestring to linestring and it works very well. Thank you very much