Scientists think it could be because of higher levels of a blood-clotting protein in those blood groups.
Study author Tessa Kole, of the University Medical Center Groningen in the Netherlands, said blood group should be considered in the future as part of risk assessment in preventing cardiovascular disease.
Of those with blood group O, 14 in 1,000 people suffered a heart attack. For non-O blood groups, the figure was 15.
While the increased risk is small on an individual level, it could be important in terms of the population.Charities say the most important thing to avoid heart disease is to eat healthily, stop smoking and take exercise.