Consulta MariaDBConnection
Posted: Fri Apr 16, 2021 3:13 pm
Buenos dias!
Hago esta consulta:Me devuelve error: Invalid SQL: SET @nCredito=0.00;
Cual es la forma correcta?; gracias!
Hago esta consulta:
Code: Select all
::oConn0:RowSet("SET @nCredito=0.00;" + ;
"SELECT FeCobro AS Fecha, PuntoVta, CompNro, CompTipo, CompxNC," + ;
"CONCAT( RTrim(TUT.TutorFac),' ',if(CompTipo=13, 'NC a Rbo.Nº', ''),' ',if(CompTipo=13,CONVERT(RIGHT(CompxNC,8),SIGNED),'') ) AS Detalle," + ;
"MntoNeto, MntoCobrado AS Facturado, @nCredito AS Credito, TUT.id_tutor " + ;
"FROM cabercbos AS RCBO " )
Cual es la forma correcta?; gracias!