0

Imagine we have an sql such as SELECT something FROM TableName WHERE something NOT IN (SELECT ...); And result size of second SELECT is a huge. So what if I change second SELECT by generated string value such as "a1, a2, a3, ... an", where is n - is a really big number. Will I get an error that sql query size is too large? Is this size limited? Is this size different for result of second SELECT and generated string?

1 Answers1

0

This completely depends on your database engine/server. You can play with database specific settings to overcome (or) at least extend some of these limits.

But overall I think you should look for solutions liks "Join" instead of subqueries. There are some advantages with that approach.

kosa
  • 65,990
  • 13
  • 130
  • 167