No Primary Key' error with INNER JOIN query in PostgreSQL?

Try an explicit join: SELECT devicetable. Pushid FROM devicetable JOIN usertable ON usertable. DeviceID = devicetable.

DeviceID WHERE usertable. Username =?

The JOIN clause in a SELECT has nothing to do whatsoever with primary keys. You don't need to have a primary key defined for any SELECT query. A side effect may be that you get duplicate rows, but that is a different matter entirely.

Actually, there is no explicit JOIN in your query. You could rewrite your query with an explicit JOIN like this equivalent: SELECT devicetable. Pushid FROM devicetable JOIN usertable USING (deviceID) WHERE usertable.

Username=? Read more about the JOIN syntax in the manual.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions