Skip to content

Commit 4bccfff

Browse files
committed
add intersect() method
1 parent fd18dca commit 4bccfff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

simple_query_builder/querybuilder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ def except_select(self, table: Union[str, list, dict]):
663663

664664
return self
665665

666+
def intersect(self):
667+
self._concat = True
668+
self._sql += " INTERSECT "
669+
return self
670+
666671
def __str__(self):
667672
return self.get_sql(False)
668673

0 commit comments

Comments
 (0)