如何在oracle中插入包含引号的字符串?我的代码是
INSERT INTO TIZ_VADF_TL_MODELS (name)
VALUES ('xxx'test'yy');
Run Code Online (Sandbox Code Playgroud)
如果我使用
INSERT INTO TIZ_VADF_TL_MODELS (name)
VALUES ("xxx'test'yy");
Run Code Online (Sandbox Code Playgroud)
我得到标识符太长错误,因为xxx'test'yy是clob.
我怎样才能做到这一点?
谢谢.
我正在使用spring框架.我在Wepsphere服务器上有一个web服务
@RequestMapping (value="/services/SayHello2Me" , method=RequestMethod.GET, headers="Accept=application/json")
@ResponseBody
public JSONObject SayHello2Me(HttpServletRequest request) throws Exception {
String input = (String) request.getParameter("name");
String output = "hello " + input + " :)";
JSONObject outputJsonObj = new JSONObject();
outputJsonObj.put("output", output);
return outputJsonObj;
}
Run Code Online (Sandbox Code Playgroud)
当我将其称为Chrome,如http:// myserver/services/sayHello2Me?name = 'baris'时,它会返回该错误:
错误404:SRVE0295E:报告错误:404
如果我在我的webservice中更改注释
@RequestMapping (value="/services/SayHello2Me")
@ResponseBody
public JSONObject SayHello2Me(HttpServletRequest request) throws Exception {
String input = (String) request.getParameter("name");
String output = "hello " + input + " :)";
JSONObject outputJsonObj = new JSONObject();
outputJsonObj.put("output", output);
return outputJsonObj; …Run Code Online (Sandbox Code Playgroud) clob ×1
java ×1
jsonobject ×1
oracle ×1
rest ×1
spring ×1
sql ×1
sql-insert ×1
string ×1
web-services ×1