data don 27t retrieve from database view in django

Solutions on MaxInterview for data don 27t retrieve from database view in django by the best coders in the world

showing results for - "data don 27t retrieve from database view in django"
Sophie
08 Feb 2020
1#import library
2from django.db import connection
3
4#Create the cursor
5cursor = connection.cursor()
6
7#Write the SQL code
8sql_string = 'SELECT * FROM myview'
9
10#Execute the SQL
11cursor.execute(sql_string)
12result = cursor.fetchall()
13
similar questions