home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / TRIAL / INTRBASE / DATA.Z / MIGRATE.SQL < prev    next >
Encoding:
Text File  |  1998-03-15  |  754 b   |  24 lines

  1. /*
  2.     THIS FILE IS FOR USE WITH THE TUTORIAL IN "GETTING STARTED",
  3.     IT IS NOT MEANT TO BE USED WITHOUT REFERRING TO THE MANUAL.
  4.  
  5. *   You must change the parameters below to match your
  6. *   server name, database name , username, and password.
  7. *   This file migrates data from the external table SALES_EXT
  8. *   to the SALES table
  9. */
  10.  
  11. CONNECT "server:\dir\mydb.gdb"
  12. USER "USERNAME" PASSWORD "password";
  13.  
  14. insert into sales
  15. (po_number, cust_no, sales_rep, order_status, order_date, ship_date, 
  16. date_needed, paid, qty_ordered, total_value, discount, item_type)
  17. select 
  18. po_number, cust_no, sales_rep, order_status, order_date, ship_date, 
  19. date_needed, paid, qty_ordered, total_value, discount, item_type
  20. from sales_ext;
  21.  
  22. commit;
  23. exit;
  24.