" e ""

giovedì 06 dicembre 2007 - 10.16

getfar Profilo | Junior Member

Ciao a tutti , ho un piccolo problemino.
Sto provando a scivere una query del tipo
select concat (campo1, " " , campo2) from tabella

Questa query la devo passare tramite VB.NET a MySql

Se eseguo la query direttamente su MySql va a buon fine mentre se la passo tramite VB.NET incappo in un errore.

La stringa che eseguo è

str="select concat (campo1, "" "" , campo2) from tabella"

La cosa strana è che se scrivo msgbox(str) ottengo proprio select concat (campo1, " " , campo2) from tabella .
Sapete dirmi perchè sbaglio?

Grazie 1000
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5