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

后端 未结 11 2786
一向
一向 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

    You must write schema name and table name in qutotation mark. As below:

    select * from "schemaName"."tableName";
    

提交回复
热议问题