When I run this
ALTER TABLE agency
ADD COLUMN single_word varchar(100)
I get
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'COLUMN'.
I tried removing the COLUMN
but still same problem.
For TSQL Flavor try this syntax:
ALTER TABLE agents
ADD [associated department] varchar(100)
I have same issue when running that query on HeidiSQL. The solution is simple, change the query to be like this:
ALTER TABLE "agency"
ADD "single_word" varchar(100)
just remove "COLUMN" keyword.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With