A teacher has been stabbed at a primary school in Queensland.

A female teacher has been taken to hospital in Townsville with chest and shoulder injuries and is in stable condition.

Police have confirmed a 12 year old girl has been detained.

No other details are known at this stage.