Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
[MySQL] Newbie here: MySQL is showing an "unknown column" error when updating a value, but works fine when selecting/showing it.
Post Flair (click to view more posts with a particular flair)
Author Summary
AlbertoAru is in MySQL
Post Body

Hi! I'm learning MySQL, I'm following a tutorial (in Spanish) and everything was well until I got this error: Error Code: 1054. Unknown column 'usuarios_id' in 'field list'. This is the code I'm running:

UPDATE usuarios SET correo_electronico = '[email protected]' 
WHERE usuarios_id = 9;

SELECT * FROM usuarios 
WHERE usuarios_id = 9 AND correo_electronico = 'coral@random_xyz.xyz';

The thing is that the second part of the code (SELECT * FROM …) works fine. What is it happening?

This is happening on MySQL Workbench 8.0, using MariaDB 11.3.2-1 on Arch Linux.

EDIT: I tried it with DBeaver too, but got the same error.

EDIT 2: looks like it was some error copy/pasting the code, writing it back from scratch solved this issue.

Author
Account Strength
0%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
188,604
Link Karma
150,782
Comment Karma
36,255
Profile updated: 3 months ago
Posts updated: 7 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 months ago