Syntax for using generated columns 

To create a virtual generated column, you can use the following sample syntax:

ALTER TABLE tablename 
ADD COLUMN columnname datatype GENERATED ALWAYS AS (expression) AFTER column;

To create a stored generated column, you can use the following sample syntax:

ALTER TABLE tablename 
ADD COLUMN columnname datatype GENERATED ALWAYS AS (expression) STORED AFTER column;
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.113.193