惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - 一场误会

Android 2.1 和 Android 4.4 工程目录超详细对比及详解 WinForm下CheckedListBox的数据绑定 C#中添加文本框的上标及文字大小 完全卸载Oracle数据库的方法 SQL Server 安装错误服务无法启动,安装后没有SQL Server Management Studio管理器 开发人员一定要加入收藏夹的网站 也谈物联网 一位年轻女董事长的27条忠告 ASP.NET AJAX视频教程 文件上传带多种样式的进度条 工程项目四控六管一协调 用户自定义报表 甘特图、网络图控件 哈佛图书馆墙上的名训 C#文件上传下载 c#读写xml文件 - 一场误会 - 博客园 多表关联的update语句 VS2005调试问题解决方案集锦 - 一场误会 - 博客园 综采工作面设备接替计划管理系统
加密、解密.NET字符串
一场误会 · 2008-08-09 · via 博客园 - 一场误会

今天在做项目的时候突然遇到了一个这样的问题,对于像'D1','D2','D3','D4'等类型的字符串作为一个字段存放到Access中的一个字段时,提示错误(因为Access数据库把它当作是4个字段来保存的)。如果把它转换以后保存也可以,但读取时又要进行相应的转换才可以得到原先的字符串,比较麻烦(因为在读取的时候把这个字符串最为SQL的IN的查询条件来执行)。所以想了一下就用加密、解密的方法来对这个字符串进行操作。

Code

不知道大家有什么好的意见,在对Access数据库进行这样的字符串操作使其更方便(SQL Server数据库可以直接添加)。