我需要帮助,我在 mysql 中有一个带有变量 flight_id 的表,如下所示:
flight_id
1R10005
1M10000000000
1M10000000001
1M10000000002
1M10000000003
1M10000000004
1M10000000005
1M10000000006
1M10000000007
1R10006
1M10000000008
1M10000000009
1M10000000010
1M10000000011
1R10007
1M10000000012
1M10000000013
1M10000000014
etc....
我想flight_id
用 flight_id '1R1' 替换所有以 '1M100' 开头的东西,我想获得这样的表:
1R10005
1R10005
1R10005
1R10005
1R10005
1R10005
1R10005
1R10005
1R10005
1R10006
1R10006
1R10006
1R10006
1R10006
1R10007
1R10007
1R10007
1R10007
有人可以帮我查询mysql吗:)