The invention provides a targeted sgRNA for editing a pig APN gene and a modified carrier as well as a preparation method and application thereof, and relates to the technical field of gene engineering. The sgRNA and the gene modified carrier provided by the invention are strong in speciality, and effectively edit the pig APN gene on cell level by a CRISPR/Cas9n system, and positive cells are edited by the obtained APN gene into donor cells to carry out somatic cell cloning and embryo transferring, so that the obtained APN gene edited cloning pig has ability of resisting piglet diarrhea. According to the preparation method of the piglet diarrhea resistant pig provided by the invention, a receptor of a virus causing the piglet diarrhea is destroyed, any other exogenous genes cannot be introduced except edition of a targeted gene APN, non-speciality edition on a non-APN gene area on a gene group cannot be carried out, a genetic background is clean and clear, and a late safety assessment work of transgenesis is greatly reduced.