From: Martin Marques <martin@bugs.unl.edu.ar>
To: Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it>
Cc: pgsql-sql@postgresql.org
Subject: Re: Select and Count
Date: Tue, 20 Mar 2007 08:55:36 -0300 (ART)
Message-ID: <Pine.LNX.4.64.0703200852180.25324@bugs.unl.edu.ar> (raw)
In-Reply-To: <005701c76ad8$8c4c7690$1102a8c0@dream>
References: <005701c76ad8$8c4c7690$1102a8c0@dream>
On Tue, 20 Mar 2007, Shavonne Marietta Wijesinghe wrote:
> Hello
>
> I have a postgresql table and i do a select via ASP
>
> strSQL = "SELECT * FROM " & MioTabella & " WHERE TRIM(date_inserted) >= '" & datainizio & "' AND TRIM(date_inserted) <= '" & datafine & "'"
>
> oRs.open strSQL,oConn,3
> schede = oRs.RecordCount
>
> Do until oRs.EOF
> sch_sin = cint(sch_sin) + cint(oRs("SCHE_SINGOLA").Value)
> oRs.movenext
> Loop
I know nothing about ASP, but it looks like you are doing a SUM of an int
with, maybe, an array (don't know how ASP defines oRs().Value output).
Keep in mind that you are pulling all the columns of that table (as you
used a * in the column selection).
Just a guess, nothing more then that.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: martin@bugs.unl.edu.ar, shavonne.marietta@studioform.it
Subject: Re: Select and Count
In-Reply-To: <Pine.LNX.4.64.0703200852180.25324@bugs.unl.edu.ar>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox