Cannot simply use PostgreSQL table name (“relation does not exist”)

后端 未结 11 2640
一向
一向 2020-11-22 05:35

I\'m trying to run the following PHP script to do a simple database query:

$db_host = \"localhost\";
$db_name = \"showfinder\";
$username = \"user\";
$passwo         


        
11条回答
  •  醉酒成梦
    2020-11-22 06:05

    Put the dbname parameter in your connection string. It works for me while everything else failed.

    Also when doing the select, specify the your_schema.your_table like this:

    select * from my_schema.your_table
    

提交回复
热议问题