We read your photo as:
How to fix "ERROR 1064 (42000): You have an error in your SQL syntax" when inserting into a MySQL table?
Computer Science
ScanSolve AI Answer
You're still getting the ERROR 1064 (42000): You have an error in your SQL syntax because you're using double quotes (") around Basic Salary. In MySQL, column names with spaces or special characters must be enclosed in backticks (`), not double quotes.
Here is the corrected command for inserting into the Salary table:
Step 1: Insert the salary details for the new employee into the Salary table, using backticks for Basic Salary.
Execute this command.
Was this helpful?
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
Got a different question?Ask your own question
More Computer Science Questions
QHow do I fix the SQL error 'ERROR 1064 (42000): You have an error in your SQL syntax' when inserting…QHow do I fix SQL error 1064 for INSERT statements in MySQL, specifically related to column names…QHow to fix SQL syntax error when inserting data with column names containing spaces in MySQL?QHow to insert value in a table in data baseQHow to fix the MySQL error "Out of range value for column 'BonusMonth'" when adding a column?
Browse by topic:SQL

Handwritten Step-by-Step Solution
Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.
Try on WhatsApp