I would like to update the value of a column within the same table by transforming its former value, but I would like to first test it with the first 10 data according to its created date.
I am getting this error though
ERROR: syntax error at end of input
LINE 6: limit 10
Here is my sample code:
UPDATE posts p1
SET cooked = (select entity2char(strip_tags(p2.cooked))
FROM posts p2
WHERE p1.id = p2.id
ORDER BY p2.created_at ASC
LIMIT 10
Any syntax that would make this work?
entity2char()?