postgres - select * from existing table - psql says table does not exist

后端 未结 2 1158
谎友^
谎友^ 2021-02-13 02:00

Fresh postgres installation, db \'test\', table \'Graeber\' created from another program.

I want to see the content of table \'Graeber\'. When I connect to the database

相关标签:
2条回答
  • 2021-02-13 02:33

    See This Example.

    queuerecords=# create table employee(id int,name varchar(100));
            CREATE TABLE
    
    
    queuerecords=# insert into employee values(1,'UsmanYaqoob');
            INSERT 0 1
    
    
    queuerecords=# select * from employee;
        id |    name
        ----+-------------
        1 | UsmanYaqoob
        (1 row)
    
    0 讨论(0)
  • 2021-02-13 02:39

    Try adding the schema as in:

    select *
    from public.Graeber
    

    If that doesn't work, then it is because you have a capital letter so try:

    select *
    from public."Graeber"
    

    Hope this helps.

    0 讨论(0)
提交回复
热议问题