Guest User

Untitled

a guest
Aug 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. How can I query a list of values into a column of rows using SQLite?
  2. VALUES 'john', 'mary', 'paul';
  3.  
  4. john
  5. mary
  6. paul
  7.  
  8. SELECT 'john' AS name
  9. UNION ALL SELECT 'mary' AS name
  10. UNION ALL SELECT 'paul' AS name;
  11.  
  12. SELECT 'john' AS name
  13. UNION ALL SELECT 'mary'
  14. UNION ALL SELECT 'paul';
Add Comment
Please, Sign In to add comment