Dynadot โ€” .com Transfer

[Resolved] SQL Problem

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch
SQL Problem

Sorted thanks :)
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
sizelimit is missing an end quote

Code:
CREATE TABLE `users`(     
`id` BIGINT AUTO_INCREMENT,     
`username` CHAR(255),     
`password` CHAR(255),     
`email` CHAR(255),     
`aboutme` LONGTEXT,     
`contact` LONGTEXT,     
`sizelimit` BIGINT,     
PRIMARY KEY (`id`) );  

CREATE TABLE `sessions`(     
`id` BIGINT AUTO_INCREMENT,     
`uid` CHAR(255),     
`username` CHAR(255),     
`timestamp` BIGINT,     
PRIMARY KEY (`id`) );  

CREATE TABLE `adverts`(     
`id` BIGINT AUTO_INCREMENT,     
`name` CHAR(255),     
`channel` BIGINT,     
`owner` BIGINT,     
`code` LONGTEXT,     
`hitlimit` BIGINT,     
`hits` BIGINT,     
`uniques` BIGINT,     
`rate` CHAR(255),     
PRIMARY KEY (`id`) );  

CREATE TABLE `banners`(     
`id` BIGINT AUTO_INCREMENT,     
`name` CHAR(255),     
`channel` BIGINT,     
`owner` BIGINT,     
`hitlimit` BIGINT,     
`hits` BIGINT,     
`uniques` BIGINT,     
`rate` CHAR(255),     
`url` CHAR(255),     
PRIMARY KEY (`id`) );  

CREATE TABLE `alertbars`(     
`id` BIGINT AUTO_INCREMENT,     
`name` CHAR(255),     
`channel` BIGINT,     
`owner` BIGINT,     
`text` CHAR(255),     
`hitlimit` BIGINT,     
`hits` BIGINT,     
`uniques` BIGINT,     
`rate` CHAR(255),     
`url` CHAR(255),     
PRIMARY KEY (`id`) );  

CREATE TABLE `channels`(     
`id` BIGINT AUTO_INCREMENT,     
`name` CHAR(255),     
`owner` BIGINT,     
`type` CHAR(255);     
PRIMARY KEY (`id`) );  

CREATE TABLE `uniques`(     
`id` BIGINT AUTO_INCREMENT,     
`ip` CHAR(255),    
`advert` BIGINT,     
`timestamp` BIGINT,     
`hits` BIGINT NOT NULL DEFAULT 0,     
PRIMARY KEY (`id`) );  

CREATE TABLE `uniquesb`(     
`id` BIGINT AUTO_INCREMENT,     
`ip` CHAR(255),     
`banner` BIGINT,     
`timestamp` BIGINT,     
`hits` BIGINT NOT NULL DEFAULT 0,     
PRIMARY KEY (`id`) );  

CREATE TABLE `uniquesa`(     
`id` BIGINT AUTO_INCREMENT,     
`ip` CHAR(255),     
`alertbar` BIGINT,     
`timestamp` BIGINT,     
`hits` BIGINT NOT NULL DEFAULT 0,     
PRIMARY KEY (`id`) );

Try these maybe
 
0
•••
You had an error in table channels at
`type` CHAR(255)
you had a semicolon on end instead of a comma. I tested this and it works great :tu:

CREATE TABLE `users`(
`id` BIGINT AUTO_INCREMENT,
`username` CHAR(255),
`password` CHAR(255),
`email` CHAR(255),
`aboutme` LONGTEXT,
`contact` LONGTEXT,
`sizelimit` BIGINT,
PRIMARY KEY (`id`) );

CREATE TABLE `sessions`(
`id` BIGINT AUTO_INCREMENT,
`uid` CHAR(255),
`username` CHAR(255),
`timestamp` BIGINT,
PRIMARY KEY (`id`) );

CREATE TABLE `adverts`(
`id` BIGINT AUTO_INCREMENT,
`name` CHAR(255),
`channel` BIGINT,
`owner` BIGINT,
`code` LONGTEXT,
`hitlimit` BIGINT,
`hits` BIGINT,
`uniques` BIGINT,
`rate` CHAR(255),
PRIMARY KEY (`id`) );

CREATE TABLE `banners`(
`id` BIGINT AUTO_INCREMENT,
`name` CHAR(255),
`channel` BIGINT,
`owner` BIGINT,
`hitlimit` BIGINT,
`hits` BIGINT,
`uniques` BIGINT,
`rate` CHAR(255),
`url` CHAR(255),
PRIMARY KEY (`id`) );

CREATE TABLE `alertbars`(
`id` BIGINT AUTO_INCREMENT,
`name` CHAR(255),
`channel` BIGINT,
`owner` BIGINT,
`text` CHAR(255),
`hitlimit` BIGINT,
`hits` BIGINT,
`uniques` BIGINT,
`rate` CHAR(255),
`url` CHAR(255),
PRIMARY KEY (`id`) );

CREATE TABLE `channels`(
`id` BIGINT AUTO_INCREMENT,
`name` CHAR(255),
`owner` BIGINT,
`type` CHAR(255),
PRIMARY KEY (`id`) );

CREATE TABLE `uniques`(
`id` BIGINT AUTO_INCREMENT,
`ip` CHAR(255),
`advert` BIGINT,
`timestamp` BIGINT,
`hits` BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) );

CREATE TABLE `uniquesb`(
`id` BIGINT AUTO_INCREMENT,
`ip` CHAR(255),
`banner` BIGINT,
`timestamp` BIGINT,
`hits` BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) );

CREATE TABLE `uniquesa`(
`id` BIGINT AUTO_INCREMENT,
`ip` CHAR(255),
`alertbar` BIGINT,
`timestamp` BIGINT,
`hits` BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) );
 
0
•••
Who got the NP$100?
 
0
•••
Truehost โ€” .com domains from $4.99, hosting includedTruehost โ€” .com domains from $4.99, hosting included
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back