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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -