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.
似乎无法使以下声明起作用,有什么建议吗?
Set @input := '1234567'; if length(@input)= 7 then SET id=@input; end if;
提前致谢,
雷内
尝试这个:
Set @input := '1234567'; SELECT IF(length(@input)=7, @input, '((something here))') AS id;