How can I put my field values inside quotes (SQL) -


code below puts quotes around value in field contains comma.

select case when charindex(',',myfield) > 0  '"'+ myfield +'"' else myfield end myfield  mytable 

the issue want select myfield address since have end dont know how go about. hope question clear. please.

unless i've misunderstood you, can add myfield address query:

select    case when charindex(',',myfield) > 0    '"'+ myfield +'"' else myfield end myfield,   myfield address  mytable 

update

to 1 column named address:

select    case when charindex(',',myfield) > 0    '"'+ myfield +'"' else myfield end address mytable 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -