-
variable variables
Is there any way in SQL to create a variable amount of variables, or more importantly, a variable number of columns.
-
SQL Server (or any DBMS) does not support variable number of columns.
Why do you need variable number of columns in a table?.
You can store variable column data in rows and pivot the table to get results later.
-
This in order to convert rows into columns, and although I can do it with a set number of rows, I need to be able to do it with any number of rows (obivously not exceeding the 255 or 256 column limit)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|