home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 27 / CDROM27.iso / linux / lg / issue31 / tools.msql < prev    next >
Encoding:
Text File  |  1998-07-29  |  481 b   |  17 lines

  1. # drop existing table.  If it doesn't exist, msql will basically ignore
  2. # this.
  3. drop table tools
  4. \g
  5.  
  6. # Create a new table in the database
  7. create table tools (
  8.    tooltype     int not null,                 # 0: hand tool;  1: power tool
  9.    toolname     char(255) not null            # name of the tool
  10. )
  11. \p\g
  12.  
  13. # Insert a few entries into the table
  14. insert into tools values (0, "hammer") \g
  15. insert into tools values (0, "screwdriver") \g
  16. insert into tools values (1, "table saw") \g
  17.