user863551
user863551

Reputation:

Adding a boolean type field to a table using SQL

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.

Upvotes: 0

Views: 1187

Answers (2)

sam yi
sam yi

Reputation: 4934

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

alter table "TEST" add "NewField" boolean;

may work....

Upvotes: 0

Bridge
Bridge

Reputation: 30651

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

Upvotes: 5

Related Questions