Created
April 22, 2016 02:38
-
-
Save lfreeland/5b20c51b3699938e7e3cac723666ad24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String format = 'Select Id from Account where Id = \'{0}\''; | |
| String Id = '<some_id>'; | |
| String query = String.format(format, new List<String>{ Id }); | |
| system.debug(' query is ' + query); | |
| // Output: query is Select Id from Account where Id = {0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment