Skip to content

Commit efaff95

Browse files
authored
Update dynamic-unpivoting-of-a-table.sql
1 parent efe171d commit efaff95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQL/dynamic-unpivoting-of-a-table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BEGIN
1313
)
1414
INTO @sql_query
1515
FROM information_schema.columns
16-
WHERE table_schema = 'test' AND table_name = 'products' AND column_name != 'product_id';
16+
WHERE table_name = 'products' AND column_name != 'product_id';
1717

1818
PREPARE sql_query FROM @sql_query;
1919
EXECUTE sql_query;

0 commit comments

Comments
 (0)