When I run the following code, the data being stored in variables department, testDate 
and testTime becomes mixture of each other when there is space in data, e.g if 
'computer science' is the department name then 'computer' is stored in variable 
department and 'science' is stored in testDate variable, but obviously I want to 
store the whole 'computer science' in variable department and also data for variables
testDate and testTime as there is also problem that you can observe in the output.
How can I fix this problem?
mysql -uroot -proot -Dproject_ivr_db -rN --execute "SELECT Dpartment,TestDate,
TestTime FROM entrytests_datetime WHERE Discipline='msc'" |
while read department testDate testTime 
do
    echo "V,department=$department"
    echo "V,testDate=$testDate"
    echo "V,testTime=$testTime"
done
echo "E,resume"
output:
  V,department=computer
  V,testDate=science
  V,testTime=first february 2013    nine thirty a m
  V,department=electronics
  V,testDate=first
  V,testTime=february 2013  ten thirty a m
  E,resume