1

I am creating a table within my database in Netbeans (Java DB).

I have created the database and I am connected to it.

This is my first and only table:

enter image description here

and the error I am receiving is this:

enter image description here

I am an amateur when it comes to databases and I have tried searching high and low to find what I'm doing wrong. I've tried:

  • Changing the table name to all lower case, all capitals and how it is now too.
  • Changing the primary key.
  • Changing the column names.
  • Changing the size of the column uid (which is fixed to 0 unless the data type is changed - I assume for obvious reasons this is correct anyway)

Where am I going wrong?

1 Answer 1

2

User is a reserved keyword in many databases. You should choose another name, or add quotation marks (") around the table name.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! - Decided to call it Person.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.