c#& amp;中的问题SQL [英] problem in c# & sql

查看:247
本文介绍了c#& amp;中的问题SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello.i 有3个表。我在乒乓球上互相间谍。但是当我使用查询搜索进行搜索时,我看不到表格中的行,也没有给出 行表。

hello.i  have 3 table . i inter persian in tabeles. but when i search with query search ,i don't see rows in tables and dont give  row's tables.

我如何为搜索波斯语的输入编写查询?

how i can write query for search persian's input?

我正确编写代码 用于搜索。但它无法给我正确的结果。

i write code right  for search . but it cant give me right result.

谢谢。

推荐答案

关于唯一的事情尝试在字符串前面加上N(国家字符) 

About the only thing to try is preceding the string with N (national character) 

" N ATIONAL"在这种情况下意味着特定于不同国籍的字符。

"NATIONAL" in this case means characters specific to different nationalities.

因此我们将使用"SELECT CompanyName FROM Company WHERE Con​​tactType = N'Marketing Assistant""

So we would use "SELECT CompanyName FROM Company WHERE ContactType = N'Marketing Assistant'"


这篇关于c#& amp;中的问题SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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