I have the following table:
I want like this:
Thanks!
I don't recommend this process because it is extremely messy, but if it helps, more power to you, I guess. Also, make sure that when you post a question, you include the code that the question is referring to. It helps other users a lot more and makes them much more willing to help!
Because MySQL will not let you put in repeat CHAR or VARCHAR columns, I suggest you either uniquely name the columns based on why they're separated this way, or make unique tables.
Unique Column Names:
CREATE TABLE 'tableName' (
id INT NOT NULL,
time1 TIME NOT NULL, //Just continue naming your columns in a different way
action1 CHAR(6) NOT NULL,
station1 VARCHAR NOT NULL,
PRIMARY KEY(primaryKey) //Use this to uniquely identify you table by a distinct
); //variable (probably id)
To make unique tables, just repeat the table above over and over again with a different Table Name. To connect all your tables together, use a foreign key. This key's variable needs to have entries that exist in all tables to have all table data connected. Read more about it here: Foreign Keys and How to Use Them
Good Luck!