Jenny, Tuesday, July 16, 2002, 9:09:30 AM, you wrote: JC> Can anybody tell me the query or procedure by which i JC> can generate the .sql file. So that I dont need to JC> write the query again and again on prompt.
JC> Just by executing the .sql file(or script language), I JC> will able to create table, insert the data on table, JC> update the data..means whatever operation i need i can JC> write on it. Create file which contains your SQL statements, f.e: CREATE TABLE test( id int primary key ); INSERT INTO test VALUES (1),(2),(3); SELECT * FROM test; and then run mysql in batch mode: mysql database_name < test.sql Look at: http://www.mysql.com/doc/B/a/Batch_mode.html -- 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