Strange postgresql behavior
Posted
by Sergey
on Stack Overflow
See other posts from Stack Overflow
or by Sergey
Published on 2010-03-19T14:17:59Z
Indexed on
2010/03/19
14:21 UTC
Read the original article
Hit count: 170
postgresql
Hi
can someone explain me why it works like this?
=> select client_id from clients_to_delete; ERROR: column "client_id" does not exist at character 8
but, when putting this inside an IN()...
=> select * from orders where client_id in(select client_id from clients_to_delete);
it works! and select all rows in the orders table. Same when running delete/update. Why it doesn't produce an error like before?
Thank you!
© Stack Overflow or respective owner