Postgres:无法选择有效的表

时间:2018-06-30 06:50:20

标签: sql postgresql heroku quoted-identifier

我在Heroku中有一个Postgres表。 Heroku Data表示它有250行数据(正确),大小约为8.4MB。

我正在尝试清除用户表。

我通过CLI从外部连接到数据库:

[DllImport("user32.dll")]
static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);

public Form3() {
    InitializeComponent();

}

private void button1_Click(object sender, EventArgs e) {
    Process p = Process.Start(@"path\app.exe");
    Thread.Sleep(200); // Allow the process to open it's window
    SetParent(p.MainWindowHandle, panel1.Handle);
}

我的数据在哪里?我只有一个数据库,这是正确的数据库。为什么private Process GetProcess() { //do some magic stuff and find actually running app return NewAppProcess; } private void button2_Click(object sender, EventArgs e) { Process p = GetProcess(); SetParent(p.MainWindowHandle, panel2.Handle); } 丢失了,而C:\Users\user_>heroku pg:psql postgresql-db-12345 --app heroku-app --> Connecting to postgresql-db-12345 psql (10.4, server 9.6.9) WARNING: Console code page (437) differs from Windows code page (1252) 8-bit characters might not work correctly. See psql reference page "Notes for Windows users" for details. SSL connection (protocol: TLSv1.2, cipher: xx, bits: 256, compression: off) Type "help" for help. heroku-app:DATABASE=> \dt List of relations Schema | Name | Type | Owner --------+----------+-------+---------------- public | Settings | table | my-user public | User | table | my-user (2 rows) heroku-app::DATABASE=> select * from Settings; ERROR: relation "settings" does not exist LINE 1: select * from Settings; heroku-apps::DATABASE=> select * from User; current_user ---------------- my-user (1 row) 只有1行而不是250行?

0 个答案:

没有答案