在sybase中转义双引号 [英] Escape double quote in sybase

查看:278
本文介绍了在sybase中转义双引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在数据库上运行查询,以CSV格式(带报价)格式检索记录:



数据,更多数据,一些有趣的数据与引号,更多



现在,当这个被解析,有一个明显的问题有一点:



...,一些有趣的数据带引号,... / p>

有没有办法在sybase中转义这些引号来保存我的后期处理?

解决方案

- 执行此句后:
SET QUOTED_IDENTIFIER ON



- 您将可以执行:
从/ table / name中选择count(*)
go


I am running a query on a database to retrieve records in a CSV (with quotes) format:

"Data","More data","some "funny" data with quotes","more".

Now when this is parsed, there is an obvious problem with this bit:

...,"some "funny" data with quotes",...

Is there a way to "escape" these quotes in sybase to save me post-processing?

解决方案

--after you execute this sentence: SET QUOTED_IDENTIFIER ON

--you will be able to execute: select count(*) from "/table/name" go

这篇关于在sybase中转义双引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆