[loadOriginal]
select fnc_load_basv1060(:s_id, ':tok_cd')

[updateOriginal]
select fnc_update_basv1060(:s_id)

[doDelete]
select fnc_delete_basv1060(':tok_cd', ':login_id')

[existoSetId]
select tok_cd from m_hin
where tok_cd != ':ex_tok_cd'
and (settok_id = ':ex_settok_id' and ':ex_settok_id' != '')
;

[DelOtok_Cd]
delete 
from m_sethin
where tok_cd = ':otok_cd'

[deleteRecord]
delete from w_basv1060_copy
where s_id = :s_id
;

[insertRecord]
insert into w_basv1060_copy
(s_id, tok_cd, row_no, ctok_cd, set_su, del_flg, cre_id, cre_time, 
	upd_id, upd_time)
values(:s_id, ':w_tok_cd', ':w_row_no', ':w_ctok_cd', :w_suryo, 0, ':login_id', now(), ':login_id', now());


[updateRecord]
delete from m_sethin
USING w_basv1060_copy
where m_sethin.tok_cd = w_basv1060_copy.tok_cd
and w_basv1060_copy.s_id = :s_id
;

insert into m_sethin 
select tok_cd, row_no, ctok_cd, set_su, del_flg, cre_id, 
	cre_time, upd_id, upd_time
from w_basv1060_copy
where s_id = :s_id
;
