"Armin Zingler" <az.nospam@freenet.de> wrote in
news:40aaa6d8$0$27036$9b622d9e@news.freenet.de:
[quoted text, click to view] > "hellrazor" <jorge@another-world.com> schrieb
>>
>> "INSERT INTO myTable (fieldOne,fieldTwo) VALUES(" & nullValue & "," &
>> nullValue & ")"
>
> "...VALUES (NULL, NULL)..."
Thanks. I figured it out right after I posted this. MySql takes care of
it.
[quoted text, click to view] > But, this question is neither related to ASP.Net, nor to the VB.Net
> language. There's an ADO.Net group:
> microsoft.public.dotnet.framework.adonet
right.
[quoted text, click to view] > You should consider using the Parameters property of the Command
> object you use to execute the Insert statment. You can assign
> DBNull.Value to the Parameter value, and the right SQL string is built
> by the Command object.
>
"hellrazor" <jorge@another-world.com> schrieb
[quoted text, click to view] >
> "INSERT INTO myTable (fieldOne,fieldTwo) VALUES(" & nullValue & "," &
> nullValue & ")"
"...VALUES (NULL, NULL)..."
But, this question is neither related to ASP.Net, nor to the VB.Net
language. There's an ADO.Net group: microsoft.public.dotnet.framework.adonet
You should consider using the Parameters property of the Command object you
use to execute the Insert statment. You can assign DBNull.Value to the
Parameter value, and the right SQL string is built by the Command object.
--
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html