devi fare un trigger, se vuoi che avvenga automaticamente.

una INSERT se vuoi farlo lato applicazione