Search code examples
special-charactersteradatainsert-into

Is there a way to run an insert into statement with a valid "?" in it?


I am trying to build an insert into statement that will include a URL string which has a valid "?" in it. I am using Teradata SQL Assistant (Windows XP) and it is trying to translate this into a parameter.

Is there any way to override this and treat it as a character value?

Example URL: https://www.location.com/livelink.exe?func=ll


Solution

  • Go to the Query tab on the Tools -> Options... page and uncheck the box labeled "Allow use of Named Parameters in queries". Here are the settings I use:

    Sreeen shot

    That will prevent question mark from being treated as prompts and process an insert statement like this:

    insert into yourdb.yourtable
      (url)
      values ('https://www.location.com/livelink.exe?func=ll')