sql query to fetch data from database table in django code example
Example: django command to fetch all columns of a table
table = Country.objects.values_list('name_of_the_country', 'country_code')
table = Country.objects.values_list('name_of_the_country', 'country_code')