Skip to content
Advertisement

mysql Creating a temporary table not working…undeclared variable error…whats wrong with my code?

When I run the code below inside phpmyadmin I get an error “Undefined Variable tmpportfolio”

what is the problem?

SQL:

Advertisement

Answer

Just join first two SQL statement in one CREATE TABLE … SELECT statment:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement