Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SELECT INSTR('359616044513513-2574', '-')
我想为dev=359616044513513和id=2574等变量赋值
我怎样才能在MYSQL的存储过程中做到这一点?
试试这个:
SELECT SUBSTRING_INDEX('359616044513513-2574', '-', 1), SUBSTRING_INDEX('359616044513513-2574', '-', -1) INTO @dev, @id;