- Code: Select all Expand view
cInsert := "insert into carga ( codigo, rubro, descrip, importe, porcentaje, activo ) Values ( " +;
"( select codigo from alumnos where curso = " + cCurso + " and seccion = " + cSeccion + ' ), ' +;
Alltrim( Str( aConceptos[ oBrw1 : nArrayAt ][ 1 ] ) ) + ", '" + Alltrim( aConceptos[ oBrw1 : nArrayAt ][ 3 ] ) + "', " +;
Alltrim( Str( aConceptos[ oBrw1 : nArrayAt ][ 4 ] ) ) + ", " + Alltrim( Str( aConceptos[ oBrw1 : nArrayAt ][ 5 ] ) ) + ", 1 )"
Cual sería una forma correcta de armar esta sentencia ? Muchas Gracias
Saludos