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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:56:21+00:00 2026-06-02T23:56:21+00:00

I have a short question about mysql query. What is correct? SELECT * FROM

  • 0

I have a short question about mysql query.

What is correct?

SELECT * FROM Persons WHERE Year='1965'

Or

SELECT * FROM `Persons` WHERE `Year` = '1965'

Is this a personal choice or is this something what is really wrong?

  • 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-02T23:56:22+00:00Added an answer on June 2, 2026 at 11:56 pm

    What if you have a table named table, or a column named where. These are reserved keywords. If you used those in your queries without backticks, they’d produce an invalid query (Of course, using reserved keywords is bad practice).

    SELECT something FROM table WHERE where = 1;
    

    vs.

    SELECT something FROM `table` WHERE `where` = 1;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to ask something about query using mysql I have this table
I have a rather short question about anonymous event handlers: This is the code
I have a short question. I want do put this \tssr>&\8=f23' into a String
I have a question about locking. This doesn't have to be only about record
This question is probably for MySQL experts and admins that have done this sort
Hi there I have a short question about database design. I also tried the
This is a question more about best practices/design patterns than regexps. In short I
I have a question about MySql. I have a table with 7.479.194 records. Some
I have been asked to post a new question about how to correctly sort
I have a short question. Im my current project I'm using LINQ-to-SQl. That is

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.