1

Please help me to insert simple sql query into table for example:

insert into table0 ( sql_text) values ( 'select count(*) from table1;');

I am receiving error .

Thanks,

3
  • At least include the error message in your question Commented Jan 19, 2018 at 13:17
  • ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax Commented Jan 19, 2018 at 13:20
  • What is your table structure? Commented Jan 19, 2018 at 13:51

1 Answer 1

1

Please try the following:

INSERT INTO tableName (columnName) values ('Select count(*) from tableName; ');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.