webForumDet fria alternativet

Flera insert i en exekvering...

3 svar · 237 visningar · startad av cherub

cherubMedlem sedan apr. 200171 inlägg
#1

Hur gör jag flera insert med en
Conn.Execute()
Är det bara som i QA att lägga dem i tillsamman och skriva GO efter varje eller?

------------------
- Rickard
http://cherub.deca-production.net
"You say I'm beautiful. Well, I can't help it! You say I'm empty. We all know I'm full of shit!"

@ndersMedlem sedan juni 200032 969 inlägg
#2

jag brukar slänga in ett enter emellan bara,

insert into blah(blah) values('blah')
insert into blah(blah) values('blah')
insert into blah(blah) values('blah')

------------------
<A HREF="http://cartman.nu" TARGET=_blank>
all your base are belong to us!</A>

cherubMedlem sedan apr. 200171 inlägg
#3

Hur då menar du? Så här eller?

sSql = "Insert Into Tabell (Field) Value ('FieldValue')" & VbCrlf & _
"Insert Into Tabell (Field) Value ('FieldValue')"
Conn.Execute(sSql)

Eller vad?

------------------
- Rickard
http://cherub.deca-production.net
"You say I'm beautiful. Well, I can't help it! You say I'm empty. We all know I'm full of shit!"

@ndersMedlem sedan juni 200032 969 inlägg
#4

precis så menar jag! :)

------------------
<A HREF="http://cartman.nu" TARGET=_blank>
all your base are belong to us!</A>

126 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
123 ms — hämta tråd, inlägg och bilagor (db)