Nottinghamshire Police said officers had responded to reports of a disturbance shortly after 23:00 BST on Saturday.
A 30-year-old woman was arrested on suspicion of causing actual bodily harm.
After being taken to custody in Mansfield, the officer was then stabbed in the hand.
The force said the officer was not seriously injured, and the woman has been released while inquiries continue.
Det Sgt Jo Eaton, from Nottinghamshire Police, said:
“We’ve routinely said that we will never tolerate this kind of behaviour against any of our officers or emergency service workers, who dedicate their lives and time to protecting the community from harm.
“Our officers put on their uniforms each day to go out onto the streets and keep everyone safe and are there to help should they ever be needed.
“No one should have to go to work and be physically or verbally assaulted just for doing their job.
“Thankfully neither of the officers were seriously injured as a result of the assaults and both are being supported by specially trained officers.
“I want to reiterate once more that anyone who believes it is acceptable to assault any officer or emergency service worker that we will thoroughly investigate and take the appropriate action.”
Before you go...
We need your help. As former emergency services & armed forces personnel, we pride ourselves on bringing you important, fast-moving and breaking news stories & videos which are free from the negative bias which is often directed at the emergency services & NHS by some sections of the mainstream media.
One of the reasons we started 'Emergency Services News' back in 2018 was because we became tired of reading badly informed stories about the emergency services & NHS which seemed only ever to highlight negative aspects of the job.
We want to be the unheard voice of the remarkable men and women who serve in the emergency services, NHS and armed forces. And with around 500k page views each month, we are getting there!
As income from ads, the mainstay source of income for most publishers, continues to decline; we need the help of you, our readers.
You can support emergency services news from as little as £1. It only takes a minute. Every contribution, however big or small, is vital for our future.
Please help us to continue to highlight the life-saving work of the emergency services, NHS and armed forces by becoming a supporter.