Is there any ways to retrieve datatable in row field in mysql database
The closest you can get is to use the GROUP_CONCAT function:

SELECT car.*, GROUP_CONCAT(color SEPARATOR ',')
FROM car
INNER JOIN carColor ON car.id=carColor.carID
GROUP BY carColor.carID;


[sqlfiddle]

Be aware of the group_concat_max_len option that can truncate your concat results.