select  distinct prod_id from OrderItems;

distinct 是对选中的列表去重。可针对多行去重。