Reputation: 1
I want to insert email address as [email protected] in my table if i do the following:
insert into employee
values ('EMP01','Mona','Ali',first_name||'.'||LAST_NAME||'@dentalHouse.com');
i get column not allowed here. Help please. Dont complicate the answer though.
is there any way to get around rather than typing name again ?
Thank you
Upvotes: 0
Views: 300
Reputation: 1269793
I am guessing that you want update
:
update employee
set emailaddress = first_name || '.' || LAST_NAME || '@dentalHouse.com'
where empid = 'EMP01';
I am just guessing what the id column is named.
Upvotes: 2