Re: Help required

2009-06-14 Thread Jahan Zaib
Thanks dear, problem resolved actually my db contains too much records and i was using wireless, after some time of query it gave an error . then i try with rownum wrote: > Btw, I think the problem is in the #date:VARCHAR# part. Why don't > you put the date in as :DATE or :TIMESTAMP ? Did you t

Re: Help required

2009-06-12 Thread Sundar Sankar
Count is a keyword. it might not be accepted. Try something else. Did u execute this query directly On Fri, Jun 12, 2009 at 7:44 AM, DelGurth wrote: > To me that COUNT seems like an alias for the result of COUNT(CD) as in > SELECT COUNT(CD) AS COUNT > > But, what is the error? > > DelGurth > >

Re: Help required

2009-06-12 Thread DelGurth
Btw, I think the problem is in the #date:VARCHAR# part. Why don't you put the date in as :DATE or :TIMESTAMP ? Did you try to put com.ibatis and java.sql log to debug, so you see the exact parameter going into the #date# parameter? DelGurth On Fri, Jun 12, 2009 at 4:44 PM, DelGurth wrote: > To

Re: Help required

2009-06-12 Thread DelGurth
To me that COUNT seems like an alias for the result of COUNT(CD) as in SELECT COUNT(CD) AS COUNT But, what is the error? DelGurth On Fri, Jun 12, 2009 at 3:35 PM, Brandon Goodin wrote: > I didn't look over it thoroughly but i noticed you appear to have a > misplaced "COUNT": >  SELECT CG , COUNT

Re: Help required

2009-06-12 Thread Brandon Goodin
I didn't look over it thoroughly but i noticed you appear to have a misplaced "COUNT": SELECT CG , COUNT(CD) *COUNT*, SUM ( TO_DATE(EDATE||' '|| etime ,'DD-MM- HH24:MI:SS' ) - TO_DATE(ADATE||' '|| atime ,'DD-MM- HH24:MI:SS' ) ) total_time Perh

Help required

2009-06-11 Thread Jahan Zaib
i am trying to run this but problem occursi have a class public class CompleteCallsReportBean implements Serializable{ /** * */ private static final long serialVersionUID = 2192836100387342196L; /** * */ private String cg; private String COUNT; private String totalTime; public void set

Re: Help required regarding showing pdf from blob data.

2008-09-01 Thread tomasz brymora
... I don't know if it will help, but look the iText library http://www.lowagie.com/iText/ (but you probably knew about already) --- On Mon, 9/1/08, Richard Yee <[EMAIL PROTECTED]> wrote: > From: Richard Yee <[EMAIL PROTECTED]> > Subject: Re: Help required regarding sho

Re: Help required regarding showing pdf from blob data.

2008-09-01 Thread Richard Yee
Ananth, You aren't storing PDF data into your blob. You are storing a String. You need to store a PDF in order to retrieve a PDF. You should use a PDF library to construct a PDF file. The error you are getting is caused by the fact that you are writing a String that you retrieved from the data

Help required regarding showing pdf from blob data.

2008-08-31 Thread Ananth.Majumdar
Hi, We are using Ibatis with Spring in our project. We have requirement to store pdf files in the database as blob columns and retrieve them and show them again as pdf. Currently we are doing the following. 1. We are converting the pdf file into a byte array and saving

Re: IBATIS CHAR FIELD NULL VALUES- Urgent help required

2006-06-02 Thread Clinton Begin
I can only think that it's either that the string is too long, or it's a problem with the JDBC driver.  iBATIS doesn't do anything special here, just calls PreparedStatement.setString();PS: Larry is right, you can't use CHAR(10), instead just use CHAR. Cheers,ClintonOn 6/2/06, Clinton Begin <[EMAIL

Re: IBATIS CHAR FIELD NULL VALUES- Urgent help required

2006-06-02 Thread Larry Meadors
n [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 1:00 PM To: user-java@ibatis.apache.org Subject: Re: IBATIS CHAR FIELD NULL VALUES- Urgent help required What Java type are you trying to map to the CHAR field? On 6/2/06, Krishnamoorthi, Sruthi (Raytheon) < [EMAIL PROTECTED]> wrote: >

RE: IBATIS CHAR FIELD NULL VALUES- Urgent help required

2006-06-02 Thread Krishnamoorthi, Sruthi (Raytheon)
String type   Thanks, Sruthi Krishnamoorthi 703-562-9732(Work) 537 A - (Raytheon) Location -Original Message-From: Clinton Begin [mailto:[EMAIL PROTECTED]Sent: Friday, June 02, 2006 1:00 PMTo: user-java@ibatis.apache.orgSubject: Re: IBATIS CHAR FIELD NULL VALUES- Urgent he

Re: IBATIS CHAR FIELD NULL VALUES- Urgent help required

2006-06-02 Thread Clinton Begin
What Java type are you trying to map to the CHAR field?On 6/2/06, Krishnamoorthi, Sruthi (Raytheon) < [EMAIL PROTECTED]> wrote:I have a char field which carries null value. The samething with varchar field also.when I pass null values it was throwing sql exception as incompatible column types. Then

IBATIS CHAR FIELD NULL VALUES- Urgent help required

2006-06-02 Thread Krishnamoorthi, Sruthi (Raytheon)
I have a char field which carries null value. The samething with varchar field also. when I pass null values it was throwing sql exception as incompatible column types. Then for varchar field i add #centerNo:VARCHAR# and same for DAte field #priorityDt:DATE#. When I did same for CHAR #parentPat

Help required to write a query

2006-04-11 Thread rohini.ganapa
Hi,   I am using the below code to retrieve user details from a table: