Skip to content

Instantly share code, notes, and snippets.

@JubbaSmail
Created December 22, 2014 23:05
Show Gist options
  • Save JubbaSmail/07149632d323fd667fea to your computer and use it in GitHub Desktop.
Save JubbaSmail/07149632d323fd667fea to your computer and use it in GitHub Desktop.
declare
--x varchar(20);
x customers %rowtype;
begin
select * into x
from customers
where customer_id=200;
if x.gender = 'F' then
dbms_output.put_line('Ms. ' || x.cust_first_name);
else
dbms_output.put_line('Mr. ' || x.cust_first_name);
end if;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment