Print Thread
Is there a way to reverse SQL comment in one step?
#56488 05/23/17 08:02 AM
Joined: May 2017
Posts: 2
D
DHC Offline OP
Member
OP Offline
Member
D
Joined: May 2017
Posts: 2
Usually we want to uncomment one block of code while comment the other block next to it. Is there a way (reverse-comment) to operate both in one step instead of two? Thanks!
i.e.
SELECT * FROM dual WHERE /*a = b*/ c = d
=>
SELECT * FROM dual WHERE a = b /*c = d*/

Re: Is there a way to reverse SQL comment in one step?
DHC #56489 05/23/17 08:31 AM
Joined: Oct 2005
Posts: 587
Belgium
Member
Offline
Member
Joined: Oct 2005
Posts: 587
Belgium
I do it like this:

SELECT * FROM dual WHERE /*a = b /*/ c = d/**/
and
SELECT * FROM dual WHERE /**/a = b /*/ c = d/**/


Roeland
Re: Is there a way to reverse SQL comment in one step?
Roeland #56515 05/31/17 10:40 AM
Joined: May 2017
Posts: 2
D
DHC Offline OP
Member
OP Offline
Member
D
Joined: May 2017
Posts: 2
Thanks but I couldn't see how it works.
I wonder if there is one step action like "click Selecttion Comment" and
... /*a = b*/ c = d
change into:
... a = b /*c = d*/


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.033s Queries: 14 (0.009s) Memory: 2.5034 MB (Peak: 3.0420 MB) Data Comp: Off Server Time: 2024-05-14 16:52:29 UTC
Valid HTML 5 and Valid CSS