select count(*)
from language_639_2_codes
where iso_639_2 = :iso2
update language_639_2_codes
set label = :label, iso_639_1 = :iso1
where iso_639_2 = :iso2
insert into language_639_2_codes
(iso_639_2, iso_639_1, label)
values
(:iso2, :iso1, :label)
select count(*) from language_codes
where language_id = :code
update language_codes set name = :name
where language_id = :code
insert into language_codes (language_id, name)
values (:code, :name)