如何恢复表格单元格中的数据(保存为数组)

时间:2018-08-01 12:29:59

标签: mysql sql database

我将用户的权限保存在数据库中作为表数组

user    user_right (varchar 255) 

1       ["write","delete"]
2       ["write","delete","update"]
3       ["add","write","delete"]
4       ["write"]

我想知道如何列出user_right列中的数据吗?

select ... from users where id = 1

有一个看起来像这样的列表

write
delete

0 个答案:

没有答案