0

Everytime I try to add a column using ALTER and ADD COLUMN I am getting a syntax error.

ALTER TABLE EMP_1
ADD COLUMN EMP_PCT NUMBER(4,2),
ADD COLUMN PROJ_NUM CHAR(3);
1

2 Answers 2

1

I am not familiar with a number data type. Perhaps you mean decimal:

ALTER TABLE EMP_1 ADD COLUMN EMP_PCT DECIMAL(5, 2);

You may also need two ALTER TABLE statements. I am just not sure if MS Access allows two changes in one statement.

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

Comments

0

For a numeric type you should use NUMERIC, not NUMBER, and for a text type you should use VARCHAR.

Comments

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.