The present invention relates to pyridinecarboxamide derivatives, a preparation method therefor and a pharmaceutical use thereof. Specifically, the present invention relates to pyridinecarboxamide derivatives represented by general formula (I), wherein the substituents of the formula (I) are defined as the same as in the specification, a preparation method therefor, a pharmaceutical composition comprising the derivatives, and the uses as therapeutic agents, especially as inhibitors of the Renal Outer Medullary Potassium channel (ROMK) and in the preparation of medicaments for treating and/or preventing hypertension and heart failure.