So your column is declared as "CHAR" and not "VARCHAR"?  A quick search in the WLS 
newsgroups points out that you shouldn't use "CHAR" columns, but instead use 
"VARCHAR".  This will automatically remove trailing blanks.

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED] On 
Behalf Of Mesut Celik
Sent: Monday, February 23, 2004 12:20 AM
To: [EMAIL PROTECTED]
Subject: EJB-QL trim usage


Hi,

I have a problem with using ejb-ql but i couldnt find the answer. 
I need to use a trim function  in a finder query so that i am able to cut the spaces 
appended at the end of a field but i dont know how. 

My query is like as follows:

select OBJECT(d) from Doctors d where d.doctorId = ?1

what i want to do:

select OBJECT(d) from Doctors d where trim(d.doctorId) = ?1

my application server is wls8.1

Regards...
Me_sut



***********************************************************************
Bu elektronik posta ve onunla iletilen b�t�n dosyalar sadece g�ndericisi tarafindan 
almasi ama�lanan yetkili ger�ek ya da t�zel kisinin kullanimi i�indir.Eger s�z konusu 
yetkili alici degilseniz bu elektronik postanin i�erigini a�iklamaniz,kopyalamaniz, 
y�nlendirmeniz ve kullanmaniz kesinlikle yasaktir ve bu elektronik postayi derhal 
silmeniz gerekmektedir TURKCELL bu mesajin i�erdigi bilgilerin dogrulugu veya eksiksiz 
oldugu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne 
sekilde olursa olsun i�eriginden, iletilmesinden, alinmasindan ve saklanmasindan 
sorumlu degildir. Bu mesajdaki g�r�sler yalnizca g�nderen kisiye aittir ve TURKCELL'in 
g�r�slerini yansitmayabilir Bu e-posta bilinen b�t�n bilgisayar vir�slerine karsi 
taranmistir.
***********************************************************************
This e-mail and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you are not the 
intended recipient you are hereby notified that any dissemination, forwarding, copying 
or use of any of the information is strictly prohibited, and the e-mail should 
immediately be deleted. TURKCELL makes no warranty as to the accuracy or completeness 
of any information contained in this message and hereby excludes any liability of any 
kind for the information contained therein or for the information transmission, 
reception, storage or use of such in any way whatsoever.The opinions expressed in this 
message belong to sender alone and may not necessarily reflect the opinions of 
TURKCELL. This e-mail has been scanned for all known computer viruses.
***********************************************************************

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message 
"signoff EJB-INTEREST".  For general help, send email to [EMAIL PROTECTED] and include 
in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to