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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -