亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

sql語句錯誤:“列..不存在”

sql語句錯誤:“列..不存在”

慕村225694 2019-12-06 15:02:09
我嘗試從postgres控制臺此命令:select sim.id as idsim,        num.id as idnum from main_sim sim   left join main_number num on (FK_Numbers_id=num.id);我得到了這個回應:錯誤:列“ fk_numbers_id”不存在第1行:...從main_sim sim左移,在(FK_Numbers ...但是如果我只是用以下方法檢查我的桌子:dbMobile=# \d main_sim id              | integer               | not null default Iccid           | character varying(19) | not null... FK_Device_id    | integer               |  FK_Numbers_id   | integer               | Indexes:    "main_sim_pkey" PRIMARY KEY, btree (id)    "main_sim_FK_Numbers_id_key" UNIQUE, btree ("FK_Numbers_id")    "main_sim_Iccid_key" UNIQUE, btree ("Iccid")    "main_sim_FK_Device_id" btree ("FK_Device_id")Foreign-key constraints:    "FK_Device_id_refs_id_480a73d1" FOREIGN KEY ("FK_Device_id") REFERENCES main_device(id) DEFERRABLE INITIALLY DEFERRED    "FK_Numbers_id_refs_id_380cb036" FOREIGN KEY ("FK_Numbers_id") REFERENCES main_number(id) DEFERRABLE INITIALLY DEFERRED...我們可以看到該列存在。可能是語法錯誤,但我看不到...任何幫助將不勝感激。亞歷西奧
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 895 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號