custom field menu data from mysql table


I created two custom post types, one is companies, the other is products.
In the custom post types products, i want to create a custom field menu which can list all companies in custom post type companies.
How can I do this?