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.
我有这个清单:
532790M 47448M 378267M 467981M 53661M 583783M 524687M 390963M 493436M 185366M 150370M 497092M 3660G 568961M 152693M 254278M 353173M
我只想选择字母“M”和“G”之前的任何最后两位数字
我可以用 SQL 来做吗?
select left(right(your_column, 3), 2) from your_table
Left(text,n) 返回字符串的起始 n 个字符。Right(text,n) 返回最后 n 个字符。把它们放在一起,你就得到了;
Left(Right(text, 3),2)