Как получить секунды, начиная с эпохи, из времени + даты вывода gmtime ()?
insert into customer_keyskill(customerID, keySkillID)
select 2,1 from dual
where not exists (
select customerID from customer_keyskill
where customerID = 2
and keySkillID = 1 )