Questions tagged by "translate"


0
 bounty
1
answers
Converting phone LETTERS into DIGITS in T-SQL / MS SQL Server
5 years ago • alex
How to convert letters used in phone numbers into digits, i.e. input string '1-800-FLOWERS' should return '1-800-3569377', using a T-SQL? In Oracle, I would have used PL/SQL TRANSLATE function, however I need to do it in T-SQL and there is no similar function in T-SQL. Please take a look at this image - this is the transformation I am looking for Thanks!
0
 bounty
1
answers
Equivalent to Oracle TRANSLATE function in Microsoft SQL Server
5 years ago • alex
What is the equivalent to Oracle PL/SQL TRANSLATE function in Microsoft SQL Server T-SQL? TRANSLATE returns string with all occurrences of each character in from_string replaced by its corresponding character in to_string, both of these strings are being passed as parameters to TRANSLATE. For example, TRANSLATE('big brown cow', 'abc', 'xyz') /* this would return 'yig yrown zow' */ This function is useful in many situations, for example,
1 from 2