MySQL ERROR 'Unknown Column in field list'

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

#error #mysql #php #sql #sql-error

3 replies · 8,336 views · started 15 years ago · 1 min read

3 participants
s3nzo Developer · 156 posts #1

Hey guys please help me once again i have a problem with MySQL i'm trying to insert data but it's returning this error message

#1054 - Unknown column 's3nzo' in 'field list'

Here's MySQL query

INSERT INTO users (id, nick, firstname, lastname, age, country, city)
VALUES (NULL, s3nzo, Alexa, goodle, 12, USA, NY)

I already tried this Solution it didn't work

Redisblood Newbie · 3 posts #2

Did u tried single quots for char values? Thats required.

Engelsmann Newbie · 1 posts #4

Also, be aware which quotes you use: Backquotes ` are used for table and field names ONLY. Single quotes, as brokenheart uses in his example, are meant for strings, and thus Brokenheart uses quotes right in his example.

Here is how I came through with no errors:

INSERT INTO supplier SET address='Kong Georgs Vej 31, 2000 Frederiksberg', company='Pedersen og Christoffersen El ApS', contact_fname='Søren', contact_lname='Christoffersen', contact_phone='38776655', contact_phone_is_mobile='0', fax='38776650', mail='', main_phone='38776655', preferred='fax', trade='f', user='USER', user_group='TEST'

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close