pbqs

Embed Size (px)

DESCRIPTION

questions PB

Citation preview

create procedureDBA.sp_contacts(in action char(1),in contact_id integer,in contact_old_id integer,in contact_last_name char(15),in contact_first_name char(15),in contact_title char(2),in contact_street char(30),in contact_city char(20),in contact_state char(2),in contact_zip char(5),in contact_phone char(10),in contact_fax char(10)) begin case action when 'I' then insert into contact(id,last_name,first_name,title,street,city,state,zip,phone,fax) values(contact_id,contact_last_name,contact_first_name,contact_title,contact_street,contact_city,contact_state,contact_zip,contact_phone,contact_fax) when 'U' then update contact set contact.id = contact_id,contact.last_name = contact_last_name,contact.first_name = contact_first_name,contact.title = contact_title,contact.street = contact_street,contact.city = contact_city,contact.state = contact_state,contact.zip = contact_zip,contact.phone = contact_phone,contact.fax = contact_fax where contact.id = contact_old_id when 'D' then delete from contact where contact.id = contact_old_id end caseendhttp://www.dd64.com/powerbuilder-depth-understanding-of-the-data-window/