0

I'm trying to create an UPDATE statement in the SQL component in Matillion however I get a syntax error at SET.

UPDATE matchingmanufacturernofulllast2
SET "matchingmanufacturernofulllast2.available" = 'f'
where listprice is not null 



ERROR: syntax error at or near "SET"
  Position: 88

Does Matillion sql component have the ability to use the sql UPDATE syntax?

Regards Conteh

2
  • What's the underlying DB this statement is aimed at? Commented Jul 27, 2020 at 19:55
  • @ericHauenstein it's aimed at redshift Commented Jul 27, 2020 at 23:17

2 Answers 2

4

Use the SQL orchestration component for DDL. The SQL transformation component is for Select only.

https://documentation.matillion.com/docs/2107012

Sign up to request clarification or add additional context in comments.

Comments

0

One option to create an update statement with a where clause in Matillion is to use the calculator component in conjuction with a case expression

CASE
WHEN ("listprice" is not null)
THEN 'F'
END

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.