Hi Guys, I had been working in mssql and i am new to oracle.
i am creating a table of three columns
table student_details:-
firstname | lastname | fullname
ramesh | kumar | ramesh kumar
what i want is to create a table and an automated column. for example, after we insert values in firstname and lastname columns, it wll combine data from both the columns and put that into the third column. firstname - rajesh. lastname - kumar. fullname - rajesh kumar.
Check out the syntax i use for creating this kind of table in mssql.
create table student_details (firstname char(20), lastname char(20), fullname as (firstname + lastname) persisted;
after teh table creation, when we enter data for firstname and lastname, the third column gets filled automatically.
can i have syntax for creating same kind of table in Oracle?
Thanks a lot, guys
