On Thursday 20 March 2003 16:14, Yasen Petrov wrote:

> mysql> select * from member;
>
> it shows lots of records and the screen goes up quickly. Thus I can't see
> the results very well because of the small screen (only 19" :):):) and I
> wonder if there's a way to output the results into a .txt file.
>
> why not be like:
> mysql> use samp_db
> mysql> select * from member > output_file.txt

Take a look at SELECT INTO OUTFILE command.

You can also do
        mysql -uuser_name -puser_password database_name -e "SELECT * FROM member" > 
/path/to/the/output_file.txt



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to