Options

Surround Highlighted values with quotes and commas

Fred1936Fred1936 Posts: 2
edited January 7, 2015 10:40AM in SQL Prompt
Is there a way to surround highlighted values with quotes?

If I have a Select statement and I past in some values into an IN clause, I want to highlight the values and perform a function to surround them with quotes and add commas.

Select * from NameTable
Where Name IN (
Bob
Bill
Jim
)

So I want to highlight Bob Bill Jim and have them set to 'Bob', 'Bill', 'Jim'.

Comments

  • Options
    Aaron LAaron L Posts: 596 New member
    Hi Fred1936,

    There's no way to currently do this in Prompt.

    It does seem like a really good idea, and a popular one too. We had a similar request posted here (with a workaround until we can get this implemented) as well as a couple similar ones on our UserVoice forum here and here.

    Please do add your vote to these requests as it helps us when we prioritize what we're going to be working on next and it'll also notify you as soon as we have a build to try with it in.

    Hopefully we'll be able to implement something to help this case.

    Thanks,
    Aaron.
Sign In or Register to comment.