Jacobian
Jacobian

Reputation: 10832

SELECT returns empty resultset

When I try to insert and select data from a table, I get an empty result set. I do it like this:

reestr-# INSERT INTO datatype(code) VALUES ('blabla')
reestr-# SELECT * FROM datatype
reestr-#

So, I get no errors or warnings in the console, but still I'm unable to insert or select any data. By the way, I even tried to insert into an invalid field cod instead of code and got no errors - this is really strange.

Upvotes: 14

Views: 8066

Answers (1)

Tzvetlin Velev
Tzvetlin Velev

Reputation: 2027

end your query with a ; => SELECT * FROM datatype;

Upvotes: 24

Related Questions