Citi interview question

How do you read a line from database?