HorstFri Aug 9 13:35:00 PDT 2002
On Fri, 9 Aug 2002, Chris Meyers wrote: ... > >Can be handled at the mysql prompt: > > mysql> source \temp\some.sql Actually if people try this you have to play around to find the right combination of \/'" to make it work on your win distro. > > That's handy. same command as in csh or tcsh. > > >As I said, no biggie but it would have helped in class to edit the SQL > >commands in one file(window) 'some.sql' and excute them on the mysql > >prompt in a second window by running 'source'. -- Horst > > > > Good suggestion. I'll remember that for the next time I teach sql. > Another nice thing about the file.sql vs. console-command approach is that students can comment out previous commands and therefore document the command history (or uncomment and reuse or modify previous commands), independently if you are using the 'mysql [options] < some.sql' or the 'source [path]some.sql' approach. Of course, if you are using a superior OS/shell like unix/bash then that is all built in, or can be looked up in $HOME/.mysql_history . BTW, because $HOME/.mysql_history leaves a permanent record, *certain* syntax versions for password changes are not recommended when you are working on a production box ! - Horst _______________________________________________ Think mailing list Think at zoneverte.org http://mail.zoneverte.org/cgi-bin/listinfo/think