标签: sql postgresql
我有表用户和表格消息:
所有者是写入消息的用户的id的外键。
当我运行此查询时,我没有收到任何错误,但它会返回所有用户。
select * from user where id in ( select non_existing_column from message where date > '2017-01-01' );
为什么它不会返回错误,在子查询中我试图选择一个不存在的列?