Failed to create table
-
Trying to use the following syntax to create a table, but failed.
CREATE TABLE wp_cpd
(entity_id, cpd_area, cpd_year, cpd_date, cpd_name, cpd_units)
(SELECT entity_id,
CASE WHEN slug=’cpd_area’ THEN values ELSE NULL
END as cpd_area,
CASE WHEN slug=’cpd_year’ THEN values ELSE NULL
END as cpd_year,
CASE WHEN slug=’cpd_date’ THEN values ELSE NULL
END as cpd_date,
CASE WHEN slug=’cpd_name’ THEN values ELSE NULL
END as cpd_name,
CASE WHEN slug=’cpd_units’ THEN values ELSE NULL
END as cpd_units,
FROM wp_cf_form_entry_values
GROUP BY entity_id,
ORDER BY entity_id);https://www.ads-software.com/plugins/custom-database-tables/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Failed to create table’ is closed to new replies.