Extract Data From Sql Using Python