Dear Thomas and Eloy
Thank you very much for your advice. I had not noticed that there was a place to set the role of the teachers - all is now well.
I think that changed the role by mistake when fiddling with the database. That is one of the dangers of changing the database directly, it is easy to change the wrong cell.
Thanks also Thomas for the extra SQL command, "WHERE" - now that is a useful command. SQL is more intelligent than I hoped. I have been wondering what I should do about courses that start on different days, e.g. two days later. I think that the following should do the trick
UPDATE moodle_quiz SET timeopen = timeopen+2880, timeclose = timeclose+2880 WHERE course = 5
Thanks to Thomas Robb's tip and the MYSQL manual
http://mysql.cbn.net.id/doc/mysql/en/UPDATE.html
The above command should (I have not tested it yet, scary) make all quizes on course 5 start and stop two days later?
In spite of the dangers, I am getting excited about MYSQL and phpmysqladmin, the guru's way of controlling a moodle? While dangerous, I think that a knowledge of SQL could save hours for Moodle adminstrators.
Are all you Moodle Gurus out there using SQL commands regularly?
Tim
Takemoto