convert to a string - Mailing list pgsql-sql

From Shavonne Marietta Wijesinghe
Subject convert to a string
Date
Msg-id 011901c75ff5$57a38930$1102a8c0@dream
Whole thread Raw
Responses Re: convert to a string  ("Bart Degryse" <Bart.Degryse@indicator.be>)
Re: convert to a string  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
Hello

i have a column N_GEN in postgreSql defined as text. In this coloumn i insert a number 10

N_GEN (text) = 10
 
 
on error resume next
  Set oRs = oConn.Execute("SELECT N_GEN FROM MyTable ORDER BY N_GEN DESC")
  If err <> 0 then 'If table not found
   GetFieldValue = "1"
  else
   GetFieldValue = oRs("N_GEN") + 1
  End If
 
But it doesn't add the 1 to my N_GEN
How can i set the Recordset to convert the string to a number and then add 1 to it??
 
Shavonne Wijesinghe
http://www.studioform.it
 
 

pgsql-sql by date:

Previous
From: "Ezequias Rodrigues da Rocha"
Date:
Subject: Re: Time of executed query
Next
From: "Shoaib Mir"
Date:
Subject: Re: Time of executed query