I am developing an application in C# that dynamically creates a table using a user entered query. The syntax I use for this is:
CREATE TABLE <table name> (<user query>)
Is there a way I can add an index to the table that includes all columns without specifying the exact column names. Something like this would be great but this doesn't work:
CREATE INDEX <index name> ON <table name> (*)
Alternatively, is there a way I query for the columns in the database. If I have this information then I can build up the query using the exact column names to add an index after the table is created.
Any help would be greatly appreciated. Thanks in advance.