如何在访问数据库中使用C# [英] How can i search a foreign character in access database using C#

查看:153
本文介绍了如何在访问数据库中使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好
我有一个访问数据库,其中包含外来字符(希伯来语)。
我如何使用c#搜索列中的值?
这是我的代码:

Hi I have a access database that contains foreign characters(Hebrew language). How can i search the values in the column by using c#? This is my code:

SELECT * FROM "table name" WHERE column_name LIKE '%שגל%'

我收到此错误: SQl语句中的语法错误

任何人都能负担得起你的时间,并帮助我吗?
שגל-这是希伯来语。

Can anyone please afford your time and help me in this? שגל- this is the Hebrew language.

推荐答案


我将列名从_region更改为property_region。

I fixed the bug. I changed the column name from _region to property_region.

为什么_region出错,是一个关键字

Why _region makes error, Is it a Keyword

这篇关于如何在访问数据库中使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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