У меня есть такой код:
self.dbc.execute ('select CELLNO,NO,POS1 from BLOCKS \ where ARTICLEID = ? and BLOCK = 0 \ and IGNORE = 0 and TYPE in ("term","phrase") \ and SELECTABLE = 1 \ and POS1 < POS2 order by CELLNO,NO' ,(self.artid,) )
self.dbc.execute ('select CELLNO,NO,POS1 from BLOCKS \ where ARTICLEID = ? and BLOCK = 0 \ and IGNORE = 0 and TYPE in (?,?) \ and SELECTABLE = 1 \ and POS1 < POS2 order by CELLNO,NO' ,(self.artid,'term','phrase',) )
TYPE in ("term","phrase")
TYPE in (?,?)