问题
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
回答1:
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:
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')
来源:https://stackoverflow.com/questions/12477671/is-there-a-way-to-run-an-insert-into-statement-with-a-valid-in-it