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

試著忘記壹切 提交于 2019-12-24 00:26:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!