Yasmin AlBalushi
Yasmin AlBalushi

Reputation: 1

email address format sql oracle

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

Answers (1)

Gordon Linoff
Gordon Linoff

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

Related Questions