跳至內容
選單
此問題已被標幟
2 回覆
27997 瀏覽次數

What is the difference between these fetching.? please give me a examples for reference site to get clear idea.still i'm confuse with it

res = cr.dictfetchall()

res2 = cr.dictfetchone()

res3 = cr.fetchall()

res4 = cr.fetchone()

as per below answers this is dictionary

[{'selected_tea_workers_line_ids': 3}, {'selected_tea_workers_line_ids': 5}]

then how to return value from that.?

    return {'value': {
                      'selected_tea_workers_line_ids':? ? ?
                      }}

refer this

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 15
10371
1
3月 15
10908
0
3月 15
5952
3
3月 15
8868
45
4月 23
85476