Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Q: SQL Insert

I try to insert a new row into my table.
But I get the error: Syntax error in INSERT INTO statement.

I used the following insert into statement:
[code]
INSERT INTO tblDeelnemers (PartnerID,Voornaam,Achternaam,Emailadres,BannerFlag,BannerURL,Password,WebsiteTitel,WebsiteURL,WebsiteOmschrijving,Rubriek) VALUES (3,'stuk','stukje','beversamsterdam@hotmail.com','true','http://www.stukjes.nl/banner.gif','joPass123','stukjes','http://www.stukje.nl','stukjes van eens stuk','literatuur')
[/code]

Note: The fieldnames are all fieldnames except the Id autonumber field

Who knows what is wrong with my INSERT INTO statement???

Comments

  • rodemmrodemm Posts: 44Member
    Well there should be someone that can solve my problem???

    : I try to insert a new row into my table.
    : But I get the error: Syntax error in INSERT INTO statement.
    :
    : I used the following insert into statement:
    : [code]
    : INSERT INTO tblDeelnemers (PartnerID,Voornaam,Achternaam,Emailadres,BannerFlag,BannerURL,Password,WebsiteTitel,WebsiteURL,WebsiteOmschrijving,Rubriek) VALUES (3,'stuk','stukje','beversamsterdam@hotmail.com','true','http://www.stukjes.nl/banner.gif','joPass123','stukjes','http://www.stukje.nl','stukjes van eens stuk','literatuur')
    : [/code]
    :
    : Note: The fieldnames are all fieldnames except the Id autonumber field
    :
    : Who knows what is wrong with my INSERT INTO statement???
    :
    :

  • rodemmrodemm Posts: 44Member
    Dear myself,

    You made the mistake that you pass a boolean value in single quotes you shouldn't do that, stupid student. So, if nobody likes to answer your question, you should do it yourself.

    Roderik

    : Well there should be someone that can solve my problem???
    :
    : : I try to insert a new row into my table.
    : : But I get the error: Syntax error in INSERT INTO statement.
    : :
    : : I used the following insert into statement:
    : : [code]
    : : INSERT INTO tblDeelnemers (PartnerID,Voornaam,Achternaam,Emailadres,BannerFlag,BannerURL,Password,WebsiteTitel,WebsiteURL,WebsiteOmschrijving,Rubriek) VALUES (3,'stuk','stukje','beversamsterdam@hotmail.com','true','http://www.stukjes.nl/banner.gif','joPass123','stukjes','http://www.stukje.nl','stukjes van eens stuk','literatuur')
    : : [/code]
    : :
    : : Note: The fieldnames are all fieldnames except the Id autonumber field
    : :
    : : Who knows what is wrong with my INSERT INTO statement???
    : :
    : :
    :
    :

Sign In or Register to comment.