Tell me more ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have my own Server with Voice Switch and not really familiar with SQL.

Having problem with following: 02-25 12:05:32 MySQL error description : Duplicate entry '0' for key 'UQ_CallsIDCC' 02-25 12:05:32 MySQL sql state : Duplicate entry '0' for key 'UQ_CallsIDCC' (this error gives from switch connected to SQL and doesn't update call records into database as value is always 0 and can't repeat same Unique value)

I know there is trigger left from previous admin, but simple gives an error when executing:

delimiter $$

create trigger calls
before insert on calls
for each row
BEGIN
IF NEW.id_cc > '0' THEN
set NEw.id_cc = '0';
set NEw.id_cn = '0';
END IF;
END
$$ 

When trying to execute trigger I get error:

"This version of SQL doesn't yet support 'multiple triggers'

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.