Is it possible to make a INSERT SELECT Statement for same table with modified values and wildcard for the rest colums?
I succeeded in getting a select insert statement with modified values. but not additionally with a wildcard. I would like to avoid having to name every single column.
V_ are variables :)
that the way i want.
INSERT INTO Table_1 (
T1.ID,
T1.NAME,
T1.SITE,
T1.*)
SELECT T1.V_DE_SITE,
T1.V_NAME,
T1.V_SITE,
T1.*
FROM Table_1 AS T1 WHERE T1.ID = V_SO_SITE;
the following is possible i did it, but without wildcard! :( the table has some more columns
INSERT INTO Table_1 (
ID,
NAME,
SITE)
SELECT V_DE_SITE,
V_NAME,
V_SITE
FROM Table_1 WHERE ID = V_SO_SITE;
Edit more info:
Is it possible to write:
Insert into tablexyz (id, name, * ) select 3, 'hello', * from tablexyz where id = 100;
i change id and name for new data set and the * copy the Rest of colums 1:1 to new id.... thats all i need. I will not write down all the colums in statement.