iT邦幫忙

0

postgres 出現 string indices must be integers

  • 分享至 

  • xImage

您好:
請問使用pgadmin4 version 7.3連接 postgres ,
查詢時,出現 string indices must be integers
這是什麼問題?

另外,他架構
schemas
|--EXM
|--Views
|-- AA

select * from EXM.AA 有問題
要用
select * from EXM."AA" 這才能過
這是正常嗎?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
海綿寶寶
iT邦大神 1 級 ‧ 2023-06-10 17:00:50
最佳解答

string indices must be integers 是 python 的錯誤訊息
簡單說就是你程式寫錯

postgreSQL裡基本上大小寫沒差
但是如果加上雙引號時, 就表示「大小寫有差」

noway iT邦研究生 3 級 ‧ 2023-06-11 11:26:14 檢舉

但目前我單獨 在pgAdmin4 中
使用select * from EXM."AA" 才能過 ,我是直接拖拉過去的
select * from EXM.AA 不能過

因為postgres廠商的版本是 9.5.15
我用
PGAdmin4 7 : select * from EXM."AA" 不能過

PGAdmin4 6 : select * from EXM."AA" 可以過
select * from EXM.AA 不能過

PGAdmin4 5 : 軟體開啟來就有問題

設定雙影號,是必須要的嗎?
謝謝

powerc iT邦新手 1 級 ‧ 2023-06-12 00:24:55 檢舉

新版本的pgadmin已經放棄postgresql 10以前的版本的維護了
建議找舊一點的版本來使用

我要發表回答

立即登入回答