Skip to content
Advertisement

String formatting — skip one format string

I have the following sql statement:

Basically I want to string-format everything except for the second-to-last format string so it looks like:

What would be the best way to do this?

Advertisement

Answer

Double %% the single % to escape it:

Where is the StringBorg that we direly need? That would make this safe.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement