I am a math teacher. I am currently developing a web app to display questions.
I am currently writing the questions myself and pulling from a database. I have a database with several columns like question, answer, author etc.
What I would like is to generate some data automatically. I would like a load of questions that look like (rand 2 digit number) + (2 digit number) in the question column and the answer in the answer column.
Can this be done with a MySQL command or would I need to write a script in something like PHP to do this?
Cheers.
Edit: I tried this but I think it might be nonsense
SELECT @num1 := Rand()*100 , @num2 := Rand()*100;
INSERT INTO `testDB`(TopicID, TopicName, SubtopicID, SubtopicName, Question, Answer, Difficulty, Author, Projectable) VALUES (1,Addition,5,Addition with two digits,CONCAT(@num1, " + ", @num2, " = "),@num1 + @num2,1,Richard Tock,Yes);