oROEchimaru
Supreme [H]ardness
- Joined
- Jun 1, 2004
- Messages
- 4,662
hi! I'm practicing tsql.
I want to create a query the spits out results that I can export to csv/excel.
On the fly, for the results i want to insert the first column, with a numeric key. However I do not want this column inserted into the real, live database table or sql... just in the results. any tips?
1
2
3
so lets say...
pull all columns, from the table... during the query add a column 1, that will become a key for the export.
exported results:
1, jeremy, company
2, blah, blah
I want to create a query the spits out results that I can export to csv/excel.
On the fly, for the results i want to insert the first column, with a numeric key. However I do not want this column inserted into the real, live database table or sql... just in the results. any tips?
1
2
3
so lets say...
pull all columns, from the table... during the query add a column 1, that will become a key for the export.
exported results:
1, jeremy, company
2, blah, blah