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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:00:04+00:00 2026-06-12T08:00:04+00:00

Possible Duplicate: Using backticks around field names What are the differences between backtick and

  • 0

Possible Duplicate:
Using backticks around field names
What are the differences between backtick and single quote? Can I use IF statement in a query as above?

I just spend a long time figuring out an issue i had qith an sql query and i wanted some more information as i cant seem to find any information on the topic elsewhere.

I had a query

INSERT INTO prep_items ('id' ,'description' ,'price' ,'gst' ,'job' ,'stores' ,'item_number' ,'decimal') 
VALUES ('NULL', 'TESTPRODUCT', '22.99', '1', 'PK', 'AB', '666', '1'
);

however this kept returning a syntax error with the query. After racking my brain for a while and comparing the query to the query that phpmyadmin generates to insert to the db i noticed that the apostrophes in the field name were actually ` the symbol on the same key as the tilda (~).

What is the difference between the two symbols? And where should the ` be used as opposed to the ‘ (apostrophe).

Thanks in advance.

(i also noticed that if i change the ”s to ` in the values list i get an error saying unknown collumn ‘valuename’ which leads me to believe it is only for the column list, but where can i find more information?)

Thanks again

  • 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-12T08:00:06+00:00Added an answer on June 12, 2026 at 8:00 am

    The backtick ` quotes identifiers such as table names and column names. It is usually optional to quote identifiers, but it is necessary if the name contains special characters (e.g. spaces) or if the name is a reserved word (e.g. desc).

    SELECT id, `desc` FROM yourtable
    

    The single quote ' delimits string literals.

    SELECT * FROM yourtable WHERE name = 'Foo'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Using a bitwise & inside an if statement I have the following
Possible Duplicate: Validate HWND using Win32 API How can I determent if the window
Possible Duplicate: Using EF 4 on .NET 3.5 SP1 Is it possible to use
Possible Duplicate: Difference between using var and not using var in JavaScript For the
Possible Duplicate: Using mercurial, what's the easiest way to commit and push a single
Possible Duplicate: Using Memcache vs Memcached with PHP Someone can explain me the difference
Possible Duplicate: Using square brackets in hidden HTML input fields What can I do
Possible Duplicate: Using Git how do I find modified files between local and remote
Possible Duplicate: Using GetHashCode for getting Enum int value Is it safe to use
Possible Duplicate: Exception using HttpRequest.execute(): Invalid use of SingleClientConnManager: connection still allocated I am

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.