Amigo estuve haciendo algunas pruebas y al fin me resulto.
CREATE TABLE `detalle_pedidos` (
`id_pedido` int(10) NOT NULL COMMENT 'Clave compuesta id_pedido/subitem_pedido',
`subitem_pedido` int(10) NOT NULL COMMENT 'Clave compuesta id_pedido / subitem_pedido',
`id_producto` int(10) NOT NULL,
`precio_unidad` int(10) NOT NULL,
`cantidad` int(10) NOT NULL,
PRIMARY KEY (`id_pedido`,`subitem_pedido`),
KEY `id_producto` (`id_producto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Volcar la base de datos para la tabla `detalle_pedidos`
--
INSERT INTO `detalle_pedidos` VALUES (2, 1, 2001290, 6565, 7);
INSERT INTO `detalle_pedidos` VALUES (2, 2, 2000100, 5454, 6);
INSERT INTO `detalle_pedidos` VALUES (3, 1, 2001290, 767, 6);
INSERT INTO `detalle_pedidos` VALUES (3, 2, 2000100, 7676, 5);
INSERT INTO `detalle_pedidos` VALUES (3, 3, 20001211, 656, 5);
Te agradezco tu apoyo me tenia enfermo esta tabla.
Gracias

