Error SQL syntax when exporting CREATE TABLE (Myphpadmin)

Asked

Viewed 38 times

0

I’m new here and haven’t started my studies in SQL and PHP, but I would like to ask for help.

When trying to download a theme content from my site in WP, error msg appears:

Cannot export CREATE TABLE sql for rconvert-subscriptions. You have an error in your SQL syntax; check the manual that Corresponds to your Mysql server version for the right syntax to use near '-subscriptions' at line 1

In the syntax is:

SELECT * FROM `wphk_rconvert-subscriptions` WHERE 1

I would like to know what I should fix in the syntax. Should I update my Mysql server?

2 answers

1

Hello

The Table wphk_rconvert-subscriptions not created. Try creating the table and try again.

CREATE TABLE wphk_rconvert-subscriptions

and pass the corresponding fields. should work

0

Your problem, as the error itself says, is in the syntax. The condition is missing for the WHERE. You must specify the column where the WHERE = 1

Example:

SELECT * FROM 'wphk_rconvert-subscriptions' WHERE id = 1
  • Guilherme, when I specify the column for WHERE, appears the following message: Mysql did not return any record .

Browser other questions tagged

You are not signed in. Login or sign up in order to post.