Testing sql using echo