SQL error 42601 in pgAdmin

Hi all,

Why do I have an SQL state error: 42601, on this query:

ALTER TABLE user
     ALTER COLUMN password TYPE VARCHAR(100);

ERROR: syntax error at or near "user"
LINE 1: ALTER TABLE user
                    ^
SQL state: 42601
Character: 13

Thanks.

what SQL instance are you using?

see here for example, the syntax varies
SQL ALTER TABLE Statement (w3schools.com)

Hi ilenia,

Thank you for your help.

I would like to share the solution I found with others so that someone may benefit from it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.