[SQL ] C# 連 PostgreSQL

作者: archknight (布丁牛奶)   2019-08-22 23:39:29
資料庫名稱:PostgreSQL
資料庫版本:11.5
內容/問題描述:
請問各位 我用 C# 執行查詢指令時
MessageBox.Show(Convert.ToString(command.ExecuteScalar()));
為什麼會顯示資料表不存在 錯誤訊息
Npgsql.PostgresException: '42P01: relation "test_table" does not exist'
我用 SQL Shell(psql)查詢資料表裡面是有資料的
以下是程式碼 麻煩各位幫我看看哪裡有問題 謝謝!
https://github.com/BudinMilk/PostgreSQL
作者: dennisxkimo (Dennis(一上B就糟糕))   2019-08-23 07:03:00
google "postgresql relation does not exist"create table是大小寫區別 與 有無雙引號問題
作者: archknight (布丁牛奶)   2019-08-23 09:20:00
謝謝您

Links booklink

Contact Us: admin [ a t ] ucptt.com