Postgres Error: More than one row returned by a subquery used as an expression

后端 未结 6 1347
无人共我
无人共我 2020-12-01 09:24

I have two separate databases. I am trying to update a column in one database to the values of a column from the other database:

UPDATE customer
SET customer         


        
6条回答
  •  春和景丽
    2020-12-01 09:28

    USE LIMIT 1 - so It will return only 1 row. Example

    customerId- (select id from enumeration where enumerations.name = 'Ready To Invoice' limit 1)

提交回复
热议问题