[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