Search
 
SCRIPT & CODE EXAMPLE
 

SQL

ERROR: syntax error at or near "AUTO_INCREMENT" posgtresql

Use SERIAL instead OF AUTO_INCREMENT
Comment

syntax error at or near "AUTO_INCREMENT"

CREATE TABLE site_position_data_new_table (
	id INT SERIAL NOT NULL,
	workspace_name VARCHAR(128) DEFAULT NULL,
	workspace_id INT DEFAULT NULL,
	workspcace_tracking_frequency VARCHAR(45) DEFAULT NULL,
	search_engine VARCHAR(128) DEFAULT NULL,
	search_engine_id INT DEFAULT NULL,
	search_term VARCHAR(128) DEFAULT NULL,
	period VARCHAR(45) DEFAULT NULL,
	position INT DEFAULT NULL,
	feature VARCHAR(45) DEFAULT NUL,
	url VARCHAR(2047) DEFAULT NULL,
	site_id INT DEFAULT NULL,
	site_label VARCHAR(256) DEFAULT NULL,
	UNIQUE INDEX key_COMPOUND (
		period, search_engine_id, search_term,
		workspace_id, position, site_id
	),
	PRIMARY KEY(id)
)	DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
Comment

PREVIOUS NEXT
Code Example
Sql :: convert polygon to text in mysql 
Sql :: SQL Less Than or Equal to Operator 
Sql :: opening xampp mysql in cmd ubuntu 
Sql :: select top 3 sql 
Sql :: change password postgres pgserver 
Sql :: execute sp in sql server 
Sql :: select columns postgres 
Sql :: dump heroku database to sql 
Sql :: 11:04:35 PM [mysql] Error: MySQL shutdown unexpectedly. 11:04:35 PM [mysql] This may be due to a blocked port, missing dependencies, 
Sql :: update trigger 
Sql :: sql database connectivity 
Sql :: setting default value for Boolean data type in SQL 
Sql :: insert into values select 
Sql :: postgres dump sql insert 
Sql :: remove all data from table mysql 
Sql :: mysql order by date asc null last 
Sql :: alter or change postgresql sequence counter 
Sql :: sql server convert to guid 
Sql :: update in sql server table 
Sql :: show table mysql 
Sql :: how to pass dynamic column name in sql query 
Sql :: create function in sql 
Sql :: there is no unique constraint matching given keys for referenced table 
Sql :: ms sql server port 
Sql :: oracle group 
Sql :: uncheck constraints and delete from table 
Sql :: mysql create table index 
Sql :: postgres extract date from timestamp 
Sql :: mysql function to remove multiple spaces from the string 
Sql :: soql more than today 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =