FoxPro/Visual FoxPro - Insert into

 
Vista:

Insert into

Publicado por Sebastián M. Barrionuevo (73 intervenciones) el 20/07/2007 14:29:17
Hola amigos alguien me podría decir como funsiona el INSERT INTO y si es parecido a:

APPEND BLANK
REPLACER ...
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Insert into

Publicado por Plinio (7841 intervenciones) el 20/07/2007 14:54:19
Tiene la misma función, pero es mas rápido. Claro que esta rapidez sola la nota en transacciones de miles y miles de registros. La sintaxis mas común:

INSERT INTO tutabla (campo1,campo2,campo3);
VALUES (valor1,valor2,valor3)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Insert into

Publicado por juan fernando (537 intervenciones) el 20/07/2007 15:09:04
Esta es otra forma ..un Insert Into con campos=Variables
de un cursor ya creado ..
esto corresponde a un botón Grabar Nuevo :

Sele Micursor2

publi xnom
publi xfe
rut=Thisform.Pageframe1.Page1.Text1.Value
nom=Thisform.Pageframe1.Page1.Text3.Value
cod=Thisform.Pageframe1.Page1.Text4.Value
ma=Thisform.Pageframe1.Page1.Text5.Value
model=Thisform.Pageframe1.Page1.Text6.Value
xhoro=Thisform.Pageframe1.Page1.Text8.Value
xfe=Thisform.Pageframe1.Page1.Text9.Value
INSERT INTO maquina(serie,rutcliente,nomcliente,maquina,modelo,horometro,xfecha);
VALUES(cod,rutc,nom,ma,model,xhoro,xfe)


Thisform.Pageframe1.Page1.Text1.Value=" "
Thisform.Pageframe1.Page1.Text2.Value=" "
Thisform.Pageframe1.Page1.Text3.Value=" "
Thisform.Pageframe1.Page1.Text4.Value=" "
Thisform.Pageframe1.Page1.Text5.Value=" "
Thisform.Pageframe1.Page1.Text6.Value=" "
Thisform.Pageframe1.Page1.Text8.Value=0
Thisform.Pageframe1.Page1.Text9.Value=Ctod("00/00/0000")
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Insert into

Publicado por Plinio (7841 intervenciones) el 20/07/2007 15:36:55
A modo de nota para ti Juan
Thisform.Pageframe1.Page1.Text9.Value=Ctod("00/00/0000")

es mejor
Thisform.Pageframe1.Page1.Text9.Value={}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar