alecrama
alecrama

Reputation: 21

how to insert text with sql query into a table in mysql?

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,

Upvotes: 1

Views: 231

Answers (1)

Aaditya Parmar
Aaditya Parmar

Reputation: 43

Please try the following:

INSERT INTO tableName (columnName) values ('Select count(*) from tableName; ');

Upvotes: 1

Related Questions