0
我正在從一個表中獲取數據並將其插入另一個表的PostgreSQL表上工作。postgresql無法從表插入無法插入
我創建一個表:
create table temp_appearance (firstname text, lastname text, position text, media text);
並用數據填充它。
然後,我創建了一個新表:
create table actors (id serial primary key ,firstname text, lastname text, position text);
但是當我插入的演員從temp_appearance:
insert into actors (firstname, lastname, position)
select firstname, lastname, position from temp_appearance;
它給了我這個錯誤: ERROR:COLUMN 「名字」 不存在 提示:在「actors」表中有一個名爲「firstname」的列,但它不能從這部分查詢中引用。
我不知道爲什麼它donig這個,因爲這些相同的命令已在其他計算機上的postgreSQL工作。 謝謝!