Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 852143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:32:48+00:00 2026-05-15T07:32:48+00:00

I am getting started with Postgresql, I converted a MS SQL DB but I

  • 0

I am getting started with Postgresql, I converted a MS SQL DB but I cannot understand why

SELECT * FROM MYTABLE

doesn’t work

while

SELECT * FROM "MYTABLE" does

Moreover from another machine, connecting to the same DB I can run

SELECT * FROM MYTABLE --(without ")

All tests were done by using PGAdmin III Windows client. Postgresql is installed on Linux server.

It’s a PG-newbie question, I hope you can help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:32:48+00:00Added an answer on May 15, 2026 at 7:32 am

    By default, postgresql will convert unquoted identifiers in a SQL statement to lower-case; which isn’t the same as doing a case-insensitive match.

    So if you have defined a table called “TABLE”, then you need to address it as “TABLE”, since just TABLE will be interpreted as “table”.

    Quite simply, the best tactic is to avoid using upper-case identifiers in postgresql: the catalogues and most examples I’ve seen use lower-case words separated by underscores (the_thing). You can use mixed-case identifiers, but in that case you have two alternatives:

    • you can use mixed-case identifiers in your statements and simply accept that they all get folded to lower-case when they’re actually stored.
    • you can commit to quoting them all the time, and being consistent with the case all the time.

    These outline my recommendations in preference order: stick to lower case style, mix case and accept the folding, insist on mixed case and deal with quoting identifiers everywhere.

    PS don’t get me started on calling a table “table”. I’m assuming that was just a (silly) example. It’s also a bad example since “select * from table” produces a syntax error, so clearly that’s not the statement you’re actually trying to run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just getting started with db2. Quick question about giving it SQL commands from a
Simple question here. Quote from the PostgreSQL Getting Started guide: PostgreSQL can be installed
Getting started with Django 1.3 here. Loving the system so far, but struggling on
I'm just getting started on Sitecore DMS 2.0, and not sure if I understand
I'm fairly proficient in mySQL and MSSQL, but I'm just getting started with postgres.
Just getting started with C++, done a bit of C but one thing I
I've been struggling with getting James Mail Server to work with PostgreSQL on a
Just getting started with Dapper. I'd like to use it, but I have to
Just getting started with Linq to SQL so forgive the newbie question. I'm trying
While getting started with some VS2005-generated MFC code, I noticed it overrode a method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.