Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I insert the values of a string intact

Participant ,
Jul 15, 2009 Jul 15, 2009

I need to insert the following string into a table:  1517 Electronics, Photonics, and Device Technologies (EPDT). What gets inserted instead is

1517 Electronics

Photonics

and Device Technologies (EPDT).

myString=1517 Electronics, Photonics, and Device Technologies (EPDT).

I'v used #PreserveSingleQuotes(myString)#

Any ideas as to what I'm dong wrong?

TOPICS
Getting started
864
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 15, 2009 Jul 15, 2009

Somehow you are treating your string as a comma delimited list.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 15, 2009 Jul 15, 2009

Hi, Jenn,

Can you post a bit more of the code related to your issue? As Dan mentioned, the string may well be acting as a list or, and along those same lines, it could be something with your SQL/Insert code but it's kind of tough to tell (for sure) without a little more code/details.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 16, 2009 Jul 16, 2009
LATEST

You can just embed the string in quotes and pass to the function in the following link which will return it in Array. You can then insert it to db. Please refer

http://cflib.org/udf/CSVtoArray

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources