0

I'm trying to add a boolean field to a table using SQL however I'm not getting anywhere. The query I am using to try and add the field is:

ALTER TABLE TEST
ADD "NewField" BOOLEAN

When running this it will display the error Invalid use of keyword. I'm trying to add this field to a paradox database.

Any help would be appreciated.

1
  • What SQL engine? Oracle, MS SQL Server, DB2, MySQL, Postgresql etc? Commented May 15, 2012 at 19:36

2 Answers 2

5

There is no Boolean in SQL - use a bit column instead.

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

Comments

0

double quote = postgres? The table names with capital letters may need double quotes as well.

alter table "TEST" add "NewField" boolean;

may work....

Comments

Your Answer

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