473,382 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

arabic query returns empty result

I have this query (that runs on Oracle 10g database):

Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.  
  3. ge.*, ge.concept AS glossarypivot FROM s_glossary_entries ge WHERE (ge.glossaryid = '161' OR ge.sourceglossaryid = '161') 
  4.  
  5. AND (ge.approved != 0 OR ge.userid = 361) 
  6.  
  7. AND concept = 'م' 
  8. ORDER BY ge.concept 
The query must display all words that begin with the arabic letter "م"
but unfortunately, it returns empty result ..

However, if I run the same query on mysql database, it works well and displays the correct result ..

What should I do in order to get this query working the right way on oracle 10 database?
Jun 2 '10 #1
6 3012
what's the characterset of your database ?

Expand|Select|Wrap|Line Numbers
  1. select value from from v$nls_parameters where parameter='NLS_CHARACTERSET';
Jun 2 '10 #2
debasisdas
8,127 Expert 4TB
I do not understand how your query display all words that begin with the a particular letter.

Which part of your code does that for you ?
Jun 3 '10 #3
@magicwand:
I ran the query you've given me, it returned this result: "AL32UTF8"

@debasisdas:
the query works perfectly with english letters only, and the part of the query that exactly filters by english letter 'a' is:

Expand|Select|Wrap|Line Numbers
  1. AND concept = 'a'  
  2.  
I hope to get a solution for arabic letters ...
Jun 5 '10 #4
if I put a UTF8 character : " ظ… " instead of the arabic character "م" it will work on oracle ...
Jun 6 '10 #5
amitpatel66
2,367 Expert 2GB
The condition AND concept = 'م' would no way give you the records that "STARTS" with arabic character even though if your characterset is set perfectly.

You will need to use pattern matching in first case in order to get the desired output.
Jun 7 '10 #6
@amitpatel66
yes you are right ...
thank you.
Jun 7 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Jerome | last post by:
Hi, I've got the following problem: I want my ASP page to display a certain number (based on a COUNT query), it works fine if the result is at least 1! If there are no records to be counted...
1
by: Arjen | last post by:
IE 6 does not return the value of a dynamic option list. Mozilla performs fine. How can I get the value of a choice in IE? Simple example below. Option list is filled with first element of array...
4
by: John Baker | last post by:
Hi: Most of the time when I do a query and it has no matches, there is a single blank line in the result that I can test. I have one query where no result produces a response with NO lines at...
1
by: Crazy Cat | last post by:
Hi, whenever the underlying query being called by EXEC in the following has an empty result set I get the following error -- Invalid Data for 'Numeric' when EXEC returns empty row. However if I...
2
by: stigwulff | last post by:
I have made a ASP.NET ver. 2 webservice that runs on an Exchange 2003 server. In that webservice I want to get the size of the mailboxes on the Exchange server. I try to use WMI and the...
4
by: Konrad Hammerer | last post by:
Hi! I have the following problem: I have a query (a) using another query (b) to get the amount of records of this other query (b), means: select count(MNR) as Number from...
2
by: pushpa4385 | last post by:
hi, i have fetching record from mysql database in this formate <?php $connsqlhostname = "localhost"; $connbase = "rajgorsamaj"; $connlogin = "pushpa"; $connpassword = "123456";
1
ifedi
by: ifedi | last post by:
I've a project (medical stuff based on PHP/apache) where I need to run this query: SELECT CONCAT_WS(" ", CONCAT(pregNo,':'), del_year, MONTHNAME(CONCAT('2000-',del_month,'-01')),...
4
guillermobytes
by: guillermobytes | last post by:
hi, i was wondering which type of join should i use to get an empty result set when there is no record in one of the tables i.e : i have two tables : Element and Attribute the table Element...
1
by: frensan | last post by:
Hello, Not sure if this is the right forum, apologies in advance if it isn't. I am using adodb to connect to oracle database. My VB script returns an empty record for a sql query, but when I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.