Consider this an addon to the answer by @Orkhan Alikhanov.
The reason it doesn't work in DbVisualizer is because that program (for some unknown reason) does not allow (difficult?) statements. You can fix this by turning on what they call "dialects" in the settings:
Then, both suggestions in the answer by Orkhan should work.