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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:19:54+00:00 2026-06-16T05:19:54+00:00

I have a main table and an index table. Both tables share a common

  • 0

I have a main table and an index table. Both tables share a common primary field called “L_Status”. I want to update the data in the main table from “L_Status” values (integers) into “L_StatusLV” (readable text values) based on the reference in the index table called “status”. Here is the code I’ve entered into PHPmyAdmin to accomplish this:

UPDATE markers.L_Status 
FROM markers
INNER JOIN STATUS ON markers.L_Status = status.L_Status
WHERE  markers.L_Status = status.L_StatusLV

PHPmyAdmin returns the following error:

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 ‘FROM markers INNER JOIN STATUS ON markers.L_Status = status.L_Status WHERE ma’ at line 2

Any advice on the sytax error here?

  • 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-16T05:19:55+00:00Added an answer on June 16, 2026 at 5:19 am

    MySQL’s UPDATE JOIN syntax differs from SQL Server’s (which looks like what you have):

    UPDATE
      /* First join the tables */
      markers 
      INNER JOIN status ON markers.L_Status = status.L_Status
    /* Then specify the new value in the SET clause */
    SET markers.L_Status = status.L_StatusLV
    

    However, as you noted above the current values are integers. If the column markers.L_Status is an INT column rather than a CHAR/VARCHAR as I assume the human-readable column is, this won’t work.

    Visit MySQL’s UPDATE syntax reference for the full syntactic details. In particular, the table_references.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have main table called 'Employee' and another slave table called 'EmployeeTypes' that has
I have a main table called M1 which consists of Ids of three individual
I have a main Table, with several child tables. TableA and TableAChild1 and TableAChild2.
I have a structure where the main table is USER, other tables include CATEGORY
I have a main SQL Server A that data is inserted into. The table
I have four different tables, one main SPECIAL table containing only id's that reference
I have a mails table which is my main tables for manipulating mails. I
Im trying to extract data from different 'tables' inside a 'Main Table' on the
I'm making a small DataBase with MySQL Workbench. I have a main table, called
I have a main table with 80lacs record (say TABLE : MAIN_TABLE) I want

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.