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 8996635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:46:50+00:00 2026-06-15T23:46:50+00:00

while i have googled for solutions for quite a time i still couldn’t find

  • 0

while i have googled for solutions for quite a time i still couldn’t find where this error is nested.

I could create a fine table that didn’t generate any problems with this

CREATE  TABLE IF NOT EXISTS `jcom_11645246_silowniainz_karta`.`Cennik` ( 
  `Klub_idKlubu` INT NOT NULL , 
  `Kategoria` VARCHAR(20) NOT NULL , 
  `Nazwa` VARCHAR(50) NOT NULL , 
  `Koszt` DECIMAL(6,2) NOT NULL , 
  `Id` INT NOT NULL , 
  PRIMARY KEY (`Klub_idKlubu`, `Id`) , 
  INDEX `fk_Cennik_Klub` (`Klub_idKlubu` ASC) , 
  CONSTRAINT `fk_Cennik_Klub` 
    FOREIGN KEY (`Klub_idKlubu` ) 
    REFERENCES `jcom_11645246_silowniainz_karta`.`Klub` (`idKlubu` ) 
    ON DELETE NO ACTION 
    ON UPDATE NO ACTION) 
ENGINE = MyISAM; 

Problematic create table looks like this

CREATE  TABLE IF NOT EXISTS `jcom_11645246_silowniainz_karta`.`Ogloszenie` ( 
  `idOgloszenia`  NOT NULL , 
  `Klub_idKlubu` INT NOT NULL , 
  `TytulOgloszenia` VARCHAR(40) NOT NULL , 
  `TrescOgloszenia` VARCHAR(400) NOT NULL , 
  PRIMARY KEY (`Klub_idKlubu`, `idOgloszenia`) , 
  INDEX `fk_Ogloszenia_Klub` (`Klub_idKlubu` ASC) , 
  CONSTRAINT `fk_Ogloszenia_Klub` 
    FOREIGN KEY (`Klub_idKlubu` ) 
    REFERENCES `jcom_11645246_silowniainz_karta`.`Klub` (`idKlubu` ) 
    ON DELETE NO ACTION 
    ON UPDATE NO ACTION) 
ENGINE = MyISAM; 

And error looks like this

#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 'NOT NULL , 
  `Klub_idKlubu` INT NOT NULL , 
  `TytulOgloszenia` VARCHAR(40) N' at line 2 

I can’t see what is so different between table1 and table2 structure that could have caused this error. I’ve looked for ” ‘ “, too many ” , ” or lack of “;”. Can I get some help on this?

  • 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-06-15T23:46:51+00:00Added an answer on June 15, 2026 at 11:46 pm

    You missed the type here:

    `idOgloszenia`  NOT NULL , 
    

    Just insert a type like INT and it will work.

    `idOgloszenia` INT NOT NULL , 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on this problem for a while and I couldn't figure
I'm stuck on this problem for quite a while now and I couldn't figure
I have googled the topic for a while but haven't found what I'm looking
So I have googled whole day, got few answers how to do this, and
While I search this one out on my own, may be some one could
I have looked at similar question on this site and googled why this is
I've been researching a solution to this all week and while there have been
Ok this is the weirdest thing I have seen in a while... I am
Since while Google Chrome started to beehive strange with Adobe Flash Player. I have
While I have played with parts of Qt in the past I am thinking

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.