Select and Count

Поиск
Список
Период
Сортировка
От Shavonne Marietta Wijesinghe
Тема Select and Count
Дата
Msg-id 005701c76ad8$8c4c7690$1102a8c0@dream
обсуждение исходный текст
Ответы Re: Select and Count
Список pgsql-sql
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
 
Then inside my asp page in the body i write the result. and this works
 
<%
 Response.write schede
%>
 
Then i want to get the SUM of the values inserted in the SCHE_SINGOLA column (defined as text)
 
<%
 Response.Write sch_sin
%>
 
But here i get a type mismacth error..
What should i do?
 
Thanks
 
Shavonne Wijesinghe
www.studioform.it
 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: ERROR: duplicate key violates unique constraint
Следующее
От: Martin Marques
Дата:
Сообщение: Re: Select and Count