Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6006583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:33:37+00:00 2026-05-23T01:33:37+00:00

Hello I blocked in the creation of a simple table please help me using

  • 0

Hello I blocked in the creation of a simple table please help me
using ubuntu 11.04 – PostgreSQL 8.4.8
with phppgadmin I get this code :

CREATE TABLE users 
(
  id                SERIAL,
  username          CHARACTER VARYING(255),
  PASSWORD           CHARACTER VARYING(255),
  etat              INTEGER(1),
  avatar            CHARACTER VARYING(255),
  description       text,
  email             CHARACTER VARYING(255),
  website           CHARACTER VARYING(255),
  country           CHARACTER VARYING(255),
  location          CHARACTER VARYING(255),
  nb_upload         INTEGER,
  sexe              CHARACTER VARYING(25),
  group_id          INTEGER,
  created           DATE,
  modified          DATE,
  enable_mail       INTEGER(1),
  enable_location   INTEGER(1),
  facebook_id       BIGINT,
  PRIMARY KEY (id)
)

but every time I execute , it return this error :

ERROR: syntax error at or near “(”
LINE 1: … “password” character varying(255), “etat” integer(1), “avat…

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:33:38+00:00Added an answer on May 23, 2026 at 1:33 am

    integer(1) is not a valid data type in PostgreSQL. The correct name is integer

    See the manual for a complete list of all available types:

    http://www.postgresql.org/docs/current/static/datatype.html

    Edit:

    If you want to store a “flag” that stores true/false use the boolean data type instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello i'm using this .htaccess code to redirect urls. RewriteEngine on RewriteRule ^printer/([^/\.]+)/?$ printer.php?id=$1
Hello can anybody solve this please I'm creating the object in the action class
Hello guys i have a problem streaming PDF files with php, i'm using this
Hello I am compiling a program with make but I get the error of
Hello I am working with a simulator that uses rcS scripts to boot, this
hello im a bit confused here. lets say we are making a simple page
Hello iam using wordpress and i need to set permission for a plugin folder
Hello Guys, I was just trying to create a plugin, and I needed it
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello again ladies and gents! OK, following on from my other question on ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.