I am using sql to create tables in my database in order to support different configurations.Columns in my table has same column name but different data types. For Example
First Configuration: Table contains column Field with type int
Second Configuration: Table contains column Field with type varchar(255)
Third Configuration: Table contains column Field with type char
In order to support the 3 different configurations my database should have all the three fields.
My Create script is:
CREATE TABLE P1
(
Field int,
Field varchar(255),
Field char
);
But this gives error due to duplicate column name. Is there a work around for this problem or is there a better design that can be followed.Please suggest.
varchar
andchar
are the same from a performance point of view) – a_horse_with_no_name