I have a update query. When i execute the below query it shows assignment to generated column.
Create Table Query :
CREATE TABLE group1 (
main_group varchar(20) GENERATED ALWAYS AS ('N/A'),
group_name varchar(50) NOT NULL,
group_id INTEGER GENERATED BY DEFAULT AS IDENTITY(start with 1)
);
Update Query :
update group1 set main_group = 'Asset' where group_name = 'Current Assets'
Error :
Error code -5513, SQL state 42513: assignment to generated column
Line 1, column 1
I have checked with syntax is right.
Edit : Added Create table query for group1 table.
Help me out of this issue...
Thanks in advance..