The mean duration of mechanical ventilation was 62.86±108.17 hours; female, short height, and common atrioventricular valve or double-inlet atrioventricular connection increased the risk of prolonged mechanical ventilation.