-2

I want to insert single quotes with the data in which I am trying to insert it in a mysql table Example id column 1 data='rose'

data='rose' should be saved under column My Actual query is UPDATE test SET ItemType ='doctype="\'text'\"'WHERE ITEMINDEX='221'

Dhivya
  • 1
  • 2

1 Answers1

0

Thanks.The following code solved my issue UPDATE test SET ItemType ='doctype=''text''' WHERE ITEMINDEX='221'

Dhivya
  • 1
  • 2