This has nothing to do with primary keys. The WHERE clause syntax
needs
AND in place of the commas.


On Sep 15, 11:52 am, Thotheolh <[email protected]> wrote:
> May I know why this SQL statement doesn't work ?
>
> UPDATE USERBASE
> SET USERNAME = ? , PASSWORD = ? , REQUIRED_PLACE = ?
> WHERE USERNAME = ? , PASSWORD = ? , REQUIRED_PLACE = ?
>
> The Schema states that username, password and required_place are all
> primary key.
>
> ALTER TABLE PUBLIC.USERBASE ADD CONSTRAINT PUBLIC.USERBASE_PK PRIMARY
> KEY(USERNAME, PASSWORD, REQUIRED_PLACE);
>
> I would like the above to execute. How should I allow all fields to be
> editable ?
>
> Is it possible to obtain and make use of some sort of in-built system
> row id if the above is not possible ?

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to