Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the ma
  2. nual that corresponds to your MySQL server version for the right syntax to use n
  3. ear 'C
  4.  
  5. @echo off
  6. set user=MyUser
  7. set password=MyPassword
  8. set host=localhost
  9. CD C:Program FilesMySQLMySQL Server 5.5bin
  10. mysql -h %host% -u %user% -p%password% < C:MyDocuments2WebMysqlSQLServer70Structure.txt --tee=Run.log --comments --debug-info --verbose
  11.  
  12. cmd
  13.  
  14. CREATE TABLE dbo.admins (
  15. idAdmin int IDENTITY (1, 1) NOT NULL,
  16. adminName nvarchar (50) NULL,
  17. adminPassword nvarchar (100) NULL,
  18. adminLevel nvarchar (50) NULL,
  19. lastLogin nvarchar (30) NULL,
  20. idSupplier int NULL DEFAULT 0,
  21. idAffiliate int NULL DEFAULT 0,
  22. idStore int NULL DEFAULT 0
  23. ) ON PRIMARY
  24. GO
  25.  
  26. CREATE TABLE dbo.affiliates (
  27. idAffiliate int IDENTITY (1, 1) NOT NULL ,
  28. affiliateName nvarchar (50) NULL ,
  29. affiliateEmail nvarchar (50) NULL ,
  30. commission float NULL DEFAULT 0,
  31. idStore int NULL DEFAULT 0
  32. ) ON PRIMARY
  33. GO
  34.  
  35. CREATE TABLE dbo.affiliatesTransfers (
  36. idAffiliateTransfer int IDENTITY (1, 1) NOT NULL ,
  37. idAffiliate int NULL DEFAULT 0,
  38. amount float NULL DEFAULT 0,
  39. transferDate nvarchar (30) NULL ,
  40. comments nvarchar (200) NULL
  41. ) ON PRIMARY
  42. GO
  43.  
  44. CREATE TABLE dbo.auctionOffers (
  45. idAuctionOffer int IDENTITY (1, 1) NOT NULL ,
  46. idAuction int NULL DEFAULT 0,
  47. idCustomer int NULL DEFAULT 0,
  48. offerDate nvarchar (30) NULL ,
  49. offerAmount float NULL DEFAULT 0
  50. ) ON PRIMARY
  51. GO
  52.  
  53. CREATE TABLE dbo.auctions (
  54. idAuction int IDENTITY (1, 1) NOT NULL ,
  55. auctionName nvarchar (50) NULL ,
  56. details ntext NULL ,
  57. startDate nvarchar (30) NOT NULL ,
  58. endDate nvarchar (30) NOT NULL ,
  59. active int NULL DEFAULT 0,
  60. idProduct int NOT NULL DEFAULT 0,
  61. startPrice float NULL DEFAULT 0,
  62. endPrice int NULL DEFAULT 0,
  63. currentPrice float NULL DEFAULT 0,
  64. idCustomerType int NULL DEFAULT 0,
  65. minOfferAmount float NULL DEFAULT 0,
  66. maxOfferAmount float NULL DEFAULT 0
  67. ) ON PRIMARY
  68. GO
  69.  
  70. CREATE TABLE dbo.backOrder (
  71. idBackOrder int IDENTITY (1, 1) NOT NULL ,
  72. backOrderDate nvarchar (12) NOT NULL ,
  73. idProduct int NULL DEFAULT 0,
  74. idCustomer int NULL DEFAULT 0,
  75. active int NULL DEFAULT 0
  76. ) ON PRIMARY
  77. GO
  78.  
  79. CREATE TABLE dbo.blockKeywords (
  80. idBlockKeyword int IDENTITY (1, 1) NOT NULL ,
  81. keyWordText nvarchar (50) NULL,
  82. idStore int NULL DEFAULT 0
  83. ) ON PRIMARY
  84. GO
  85.  
  86. CREATE TABLE dbo.bundles (
  87. idBundle int IDENTITY (1, 1) NOT NULL ,
  88. mainIdProduct int NULL DEFAULT 0,
  89. idProduct int NULL DEFAULT 0
  90. ) ON PRIMARY
  91. GO
  92.  
  93. CREATE TABLE dbo.cartRows (
  94. idCartRow int IDENTITY (1, 1) NOT NULL ,
  95. idProduct int NULL DEFAULT 0,
  96. quantity int NULL DEFAULT 0,
  97. unitPrice float NULL DEFAULT 0,
  98. unitCost float NULL DEFAULT 0,
  99. unitWeight float NULL DEFAULT 0,
  100. idDbSessionCart int NULL DEFAULT 0,
  101. personalizationDesc nvarchar (150) NULL
  102. ) ON PRIMARY
  103. GO
  104.  
  105. CREATE TABLE dbo.cartRowsOptions (
  106. idCartRow int NULL DEFAULT 0,
  107. idOption int NULL DEFAULT 0,
  108. priceToAdd float NULL DEFAULT 0,
  109. optionDescrip nvarchar (50) NULL
  110. ) ON PRIMARY
  111. GO
  112.  
  113. CREATE TABLE dbo.categories (
  114. idCategory int IDENTITY (1, 1) NOT NULL ,
  115. categoryDesc nvarchar (50) NULL ,
  116. keywords nvarchar (50) NULL ,
  117. details nvarchar (150) NULL ,
  118. idParentCategory int NULL DEFAULT 0,
  119. displayOrder int NULL DEFAULT 0,
  120. active int NULL DEFAULT -1,
  121. imageCategory char (50) NULL
  122. ) ON PRIMARY
  123. GO
  124.  
  125. CREATE TABLE dbo.categories_products (
  126. idProduct int NULL DEFAULT 0,
  127. idCategory int NULL DEFAULT 0
  128. ) ON PRIMARY
  129. GO
  130.  
  131. CREATE TABLE dbo.countryCodes (
  132. countryName nvarchar (150) NULL ,
  133. countryCode nvarchar (4) NULL
  134. ) ON PRIMARY
  135. GO
  136.  
  137. CREATE TABLE dbo.creditCards (
  138. idOrder int NULL ,
  139. cardType nvarchar (50) NULL ,
  140. cardNumber nvarchar (80) NULL ,
  141. expiration nvarchar (30) NULL ,
  142. seqCode nvarchar (6) NULL ,
  143. obs nvarchar (150) NULL
  144. ) ON PRIMARY
  145. GO
  146.  
  147. CREATE TABLE dbo.currencyStatic (
  148. idCurrencyStatic int IDENTITY (1, 1) NOT NULL ,
  149. currencyName nvarchar (150) NULL ,
  150. conversion float NULL DEFAULT 0,
  151. currencySign nvarchar (4) NULL
  152. ) ON PRIMARY
  153. GO
  154.  
  155. CREATE TABLE dbo.customer_specialPrices (
  156. idCustomer_SpecialPrice int IDENTITY (1, 1) NOT NULL ,
  157. idCustomer int NULL DEFAULT 0,
  158. idProduct int NULL DEFAULT 0,
  159. specialPrice float NULL DEFAULT 0
  160. ) ON PRIMARY
  161. GO
  162.  
  163. CREATE TABLE dbo.customerTracking (
  164. idCustomerTracking int IDENTITY (1, 1) NOT NULL ,
  165. idCustomer int NULL DEFAULT 0,
  166. trackingDate nvarchar (12) NULL ,
  167. trackingHour nvarchar (20) NULL ,
  168. action nvarchar (100) NULL ,
  169. misc nvarchar (50) NULL ,
  170. idStore int NULL DEFAULT 0,
  171. ) ON PRIMARY
  172. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement