code_junkie

Retrieving multiple rows into a listview control from an ODBC source works well for simple SELECTs with a statement attribute of SQL_SCROLLABLE. How do I do this with a UNION query?

Nov 11th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. select some_fields from table1
  2. union
  3. select same_fields from table2
  4.  
  5. select some_fields from table1
  6. union
  7. select same_fields from table2
Add Comment
Please, Sign In to add comment