how to add , edit and delete comma separated value of database .?

后端 未结 3 954
忘掉有多难
忘掉有多难 2021-01-14 11:42

i have created one table called role and the fields are like (roleid,role,prohibitedprocess,prohibitedports) here roleid is unique. and i have a comma separated value for \"

3条回答
  •  难免孤独
    2021-01-14 12:21

    One way would be to retrieve all of 'keywords' in an input element and edit them like a sentence. However, for what you want to do, you may wanna add a new table called prohibitedprocess and use roleid as a foreign key. Then retrieve from that table according the roleid. eg: SELECT item FROM prohibitedprocess p, role r WHERE p.roleid = r.roleid

提交回复
热议问题