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

  • Home
  • SEARCH
  • 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 7838695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:10:51+00:00 2026-06-02T15:10:51+00:00

How do I insert string with white spaces in VARCHAR? insert into users (user_id,firstname,lastname,email,group)

  • 0

How do I insert string with white spaces in VARCHAR?

insert into users (user_id,firstname,lastname,email,group) values('admin','some','Body','admin@something.com','Site admin');

This is giving me syntax error, I am new to mysql, I went through mysql documentation that doesnt give me clear idea why this behavior is.

 mysql> insert into users (user_id,firstname,lastname,email,group) values('admin','some','Body','admin@something.com','Site admin');
ERROR 1064 (42000): 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 'group) values('admin','some','Body','admin@something.com','Site admin')' at line 1
  • 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-02T15:10:54+00:00Added an answer on June 2, 2026 at 3:10 pm

    group is a keyword in MySQL. Modify your query like this:

    INSERT INTO users (user_id, firstname, lastname, email, `group`)
    VALUES('admin', 'some', 'Body', 'admin@something.com', 'Site admin');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Dim insert_coupon_query As String = (INSERT INTO qa_discountcoupons (id, status_code) VALUES (AUTO_INCREMENT_ID, 5)) Dim
I'm having trouble with a method I wrote to insert string words into a
I need to insert an HTML string into the <head> tag of the current
How can one insert a Unicode string CSS into CleverCSS ? In particular, how
I have char array(vector) of chars and I want to insert white spaces in
How do I append white space to a string builder? I need to insert
I need to insert string to text file, for example, before first line from
string.insert in c# doesn't overwrite the character that is in the startindex does it?
I am trying to insert a string in MySQL table. But the following is
How can I use emacs string-insert-rectangle operation to add a vector of numbers to

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.