📌  相关文章
📜  数据不会从 django 中的数据库视图中检索 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:09.883000             🧑  作者: Mango

代码示例1
#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()