0
It is possible to return the result of a query to a variable in the classic Asp?
example:
<%
dim retorno as string
set minha_conexao = dao.open()
set rs = minha_conexao.execute("Select max(data) from minha_tabela")
%>
At this point the query return will only be a value, as I do to assign this information to a variable.
I tried to make the set return = rs(0), however it is not returning.
He even tried the
rs.fields(0)
?– Marcelo Vismari
also brings no return
– LePy
@Lepy Tried rs("Nomedacoluna") ?
– Edvaldo Lucena