Try it this way:
select field1 from table1 where field1 not in '(select field2 from table2 where field2 like 'something')%';
Be carful with the IN-Clause. Postgres is not very fast with IN-Subselects with Version 7.3 and older versions
Hello,
At the moment I am testing a little bit with PostgreSql 7.4.2.
Especially I want to find the "best" indexes for specific SQL-Statements.
Let me describe a very strange situation. I execute some SQL-Selects on a table.
First, the table is not index.
I enter a SELECT-statement that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.