How to SELECT only few rows from a column in sql (SQLite Database Browser)? -
i using sqlite database browser.
table : test test has single column "words" values shown below :
words -------- apple pen xerox notebook toys zoo stars apes
write sql query (which should execute in sqlite database browser) select words between 'xerox' , 'stars' & words 'pen' apes.
this may 1 option:
select * test rowid between (select rowid test words = 'xerox') + 1 , (select rowid test words = 'stars') - 1 union select '---' union select * test rowid between (select rowid test words = 'pen') , (select rowid test words = 'apes');
Comments
Post a Comment