Citi Interview Question

How do you read a line from database?