home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 88 / PIWD88.iso / mac / contents / developer / tutorial_files / Pages88-89 / cms.sql < prev    next >
Text File  |  2003-10-29  |  1KB  |  89 lines

  1. -- MySQL dump 9.09
  2.  
  3. --
  4.  
  5. -- Host: localhost    Database: cms
  6.  
  7. ---------------------------------------------------------
  8.  
  9. -- Server version    4.0.15-nt
  10.  
  11.  
  12.  
  13. --
  14.  
  15. -- Table structure for table `tblcat`
  16.  
  17. --
  18.  
  19.  
  20.  
  21. CREATE TABLE tblcat (
  22.  
  23.   catId int(11) NOT NULL auto_increment,
  24.  
  25.   catName varchar(100) default NULL,
  26.  
  27.   catDesc text,
  28.  
  29.   PRIMARY KEY  (catId)
  30.  
  31. ) TYPE=MyISAM;
  32.  
  33.  
  34.  
  35. --
  36.  
  37. -- Dumping data for table `tblcat`
  38.  
  39. --
  40.  
  41.  
  42.  
  43. INSERT INTO tblcat VALUES (1,'test one','This is a testing category');
  44.  
  45. INSERT INTO tblcat VALUES (2,'test two','Another testing category');
  46.  
  47.  
  48.  
  49. --
  50.  
  51. -- Table structure for table `tblcontent`
  52.  
  53. --
  54.  
  55.  
  56.  
  57. CREATE TABLE tblcontent (
  58.  
  59.   contentId int(11) NOT NULL auto_increment,
  60.  
  61.   contentTitle varchar(255) default NULL,
  62.  
  63.   contentText text,
  64.  
  65.   catId int(11) default NULL,
  66.  
  67.   PRIMARY KEY  (contentId)
  68.  
  69. ) TYPE=MyISAM;
  70.  
  71.  
  72.  
  73. --
  74.  
  75. -- Dumping data for table `tblcontent`
  76.  
  77. --
  78.  
  79.  
  80.  
  81. INSERT INTO tblcontent VALUES (1,'Item One','This is some dummy content',1);
  82.  
  83. INSERT INTO tblcontent VALUES (2,'Item Two','This is the second item of dummy content',1);
  84.  
  85. INSERT INTO tblcontent VALUES (3,'Item Three','This is the third item of dummy content',2);
  86.  
  87.  
  88.  
  89.