I wanna use temporary table to avoid field names enumeration inside SELECT clause. And try to do it so:
SELECT * INTO #TempTable
FROM Acts;
ALTER TABLE #TempTable
DROP COLUMN id,
DROP COLUMN numOfAct;
UPDATE #TempTable
SET dateOfAct = NOW();
SELECT * FROM #TempTable;
DROP TABLE #TempTable;
But it points me an error near “From Acts”. I think # – special symbol in MySQL, anyway, how i can do something like this to avoid enumeration?
This looks much like