Auto-generate, auto-increment primary key

how would I tackle foreign keys (FK). Say that I have 2 tables. Student and Student Additional Info. In Student, I have StudentID as PK. I then want to save it so that when I insert a row in Student Additional Info, I can update a column in that table with my saved StudentId which becomes the FK in this table.