Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/05/2007, 09:38
Avatar de Shiryu_Libra
Shiryu_Libra
Colaborador
 
Fecha de Ingreso: febrero-2007
Ubicación: Cantando "Screenager" en "Kirafa Kaput"
Mensajes: 3.614
Antigüedad: 18 años, 1 mes
Puntos: 88
Sentencia SQL, modificacion de todos los campos

bueno amigos
heme aki con otra cuestion...

tengo en mi base de datos, un campo (recibo), que tiene limitante de 5 caracteres NUMERICOS, que seria 00000 a 99999... ahora bien

se puede consultar y al mismo tiempo actualizar ese registro????

este procedimiento he realizado para, reacondicionar ese campo
Código PHP:
RS.open sSQLoCxn33
if Err=0 then
    response
.Write "<table>"
    
while RS.EOF=false
        
if t=0 then
            nuevo
="00000"
        
else
            if (
t>and t<10then
                nuevo
="0000"&t
            
else
                if (
t>and t<100then
                    nuevo
="000"&t
                
else
                    if (
t>99 and t<1000then
                        nuevo
="00"&t
                    
else
                        if (
t>999 and t<10000then
                            nuevo
="0"&t
                        
else
                            if (
t>9999 and t<100000then
                                nuevo
=t
                            end 
if
                        
end if
                    
end if
                
end if
            
end if
        
end if
        
a=a+1
        response
.Write "<tr><td>"
        
t=int(RS("id_recibo").value)
        
response.Write "<td>"&a&"</td><td>Original("&t&") </td><td>- Modificado("&nuevo&")</td></tr>"
        
RS.movenext
        response
.Flush()
    
wend
    response
.Write "</table>"
end if 
ahora bien, ya visto el proceso, en que parte puedo actualizar????
alguna sugerencia???
__________________
"Eres parte del problema, parte de la solucion o parte del paisaje"
Un Saludo desde Desierto de Altar, Sonora, MX.
Shiryu_libra