MySql, split a string and insert into table

后端 未结 4 596
再見小時候
再見小時候 2021-01-04 20:11

I have two inputs for my stored procedure. One is the \'RoledID\' and second one is the \'MenuIDs\'. \'MenusIDs\' is a list of comma separated menus ids that need to be inse

4条回答
  •  青春惊慌失措
    2021-01-04 20:21

    AFAIK MySQL does not have a function to split strings. Here is the MySQL manual for string related functions. In the comments section should be some information about workarounds for splitting string with substring-functions but not really usable: MySQL manual

提交回复
热议问题