Help!!!

Thread Solved

Join Date: Apr 2008
Posts: 26
Reputation: maddogsprofiles is an unknown quantity at this point 
Solved Threads: 0
maddogsprofiles's Avatar
maddogsprofiles maddogsprofiles is offline Offline
Light Poster

Help!!!

 
0
  #1
Jan 18th, 2009
Can someone help me with this database, code bellow

  1. --
  2. -- Table structure for table `bapps`
  3. --
  4.  
  5. CREATE TABLE `bapps` (
  6. `bappID` INT(11) NOT NULL AUTO_INCREMENT,
  7. `bappFROM` INT(11) NOT NULL DEFAULT '0',
  8. `bappBUSINESS` INT(11) NOT NULL DEFAULT '0',
  9. `bappTEXT` VARCHAR(255) NOT NULL DEFAULT '',
  10. PRIMARY KEY (`bappID`)
  11. ) ENGINE=MyISAM AUTO_INCREMENT=51 DEFAULT CHARSET=latin1 AUTO_INCREMENT=51 ;
  12.  
  13. --
  14. -- Dumping data for table `bapps`
  15. --
  16.  
  17.  
  18.  
  19. -- --------------------------------------------------------
  20.  
  21. --
  22. -- Table structure for table `be`
  23. --
  24.  
  25. CREATE TABLE `be` (
  26. `beFROM` INT(11) NOT NULL DEFAULT '0',
  27. `beTO` INT(11) NOT NULL DEFAULT '0',
  28. PRIMARY KEY (`beFROM`)
  29. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  30.  
  31. --
  32. -- Dumping data for table `be`
  33. --
  34.  
  35.  
  36. -- --------------------------------------------------------
  37.  
  38. --
  39. -- Table structure for table `bf`
  40. --
  41.  
  42. CREATE TABLE `bf` (
  43. `bfFROM` INT(11) NOT NULL DEFAULT '0',
  44. `bfTO` INT(11) NOT NULL DEFAULT '0',
  45. PRIMARY KEY (`bfFROM`)
  46. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  47.  
  48. --
  49. -- Dumping data for table `bf`
  50. --
  51.  
  52.  
  53. -- --------------------------------------------------------
  54.  
  55. --
  56. -- Table structure for table `busevents`
  57. --
  58.  
  59. CREATE TABLE `busevents` (
  60. `bevID` INT(11) NOT NULL AUTO_INCREMENT,
  61. `bevGANG` INT(11) NOT NULL DEFAULT '0',
  62. `bevTIME` INT(11) NOT NULL DEFAULT '0',
  63. `bevTEXT` TEXT NOT NULL,
  64. PRIMARY KEY (`bevID`)
  65. ) ENGINE=MyISAM AUTO_INCREMENT=99 DEFAULT CHARSET=latin1 AUTO_INCREMENT=99 ;
  66.  
  67. --
  68. -- Dumping data for table `busevents`
  69. --
  70.  
  71.  
  72. -- --------------------------------------------------------
  73.  
  74. --
  75. -- Table structure for table `businesses`
  76. --
  77.  
  78. CREATE TABLE `businesses` (
  79. `bID` INT(11) NOT NULL AUTO_INCREMENT,
  80. `bNAME` VARCHAR(255) NOT NULL DEFAULT '',
  81. `bOWNER` INT(11) NOT NULL DEFAULT '0',
  82. `bPROFIT` BIGINT(30) NOT NULL DEFAULT '0',
  83. `bPOPULATION` BIGINT(30) NOT NULL DEFAULT '0',
  84. `bDAYSOLD` INT(11) NOT NULL DEFAULT '0',
  85. `bBANKMONEY` INT(11) NOT NULL DEFAULT '0',
  86. `bBANKCRYSTALS` INT(11) NOT NULL DEFAULT '0',
  87. `bLOGO` VARCHAR(255) NOT NULL DEFAULT '0',
  88. `bDESCRIPTION` VARCHAR(255) NOT NULL DEFAULT '0',
  89. `bPDAY` BLOB NOT NULL,
  90. `bMESSAGES` TEXT NOT NULL,
  91. PRIMARY KEY (`bID`)
  92. ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
  93.  
  94. --
  95. -- Dumping data for table `businesses`
  96. --
  97.  
  98. ALTER TABLE `users` ADD `business` INT(11) NOT NULL DEFAULT '0',
  99. ALTER TABLE `users` ADD `dib` INT(11) NOT NULL DEFAULT '0',

Error message is

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE `users` ADD `dib` int(11) NOT NULL default '0',' at line 2
Can someone please help me?
OHS=The Future!
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 193
Reputation: mwasif is an unknown quantity at this point 
Solved Threads: 26
mwasif mwasif is offline Offline
Junior Poster

Re: Help!!!

 
1
  #2
Jan 19th, 2009
You have comma at the end of the statement, statement should end with a semicolon not comma.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 26
Reputation: maddogsprofiles is an unknown quantity at this point 
Solved Threads: 0
maddogsprofiles's Avatar
maddogsprofiles maddogsprofiles is offline Offline
Light Poster

Re: Help!!!

 
0
  #3
Jan 19th, 2009
Oh wow..... I can't believe I didn't catch that, thank you!
OHS=The Future!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the MySQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC