Delete a specific value from a set of values in a column - HQL -
how can write hql deleting specific value column ( column contains set of values separated comma)
table1 id name value 001 rajesh 90,100,210,400 002 suresh 100,400,300,66 003 mahesh 200,500 004 virat 400,578,57
i tried following code wrong.
session session=getsession(); query query = session.createquery("delete table1 value=:value , name=:name"); query.setparameter("value", "100"); query.setparameter("name", "rajesh"); query.executeupdate();
i want delete value- 100 name - rajesh
Comments
Post a Comment