Answers for "data don't retrieve from database view in django"

0

data don't retrieve from database view in django

#import library
from django.db import connection

#Create the cursor
cursor = connection.cursor()

#Write the SQL code
sql_string = 'SELECT * FROM myview'

#Execute the SQL
cursor.execute(sql_string)
result = cursor.fetchall()
Posted by: Guest on August-04-2021

Code answers related to "data don't retrieve from database view in django"

Python Answers by Framework

Browse Popular Code Answers by Language