请问各位,我下面这两种写法对效率影响那个大,谁更好写。(数据大约300万条左右)
if 限制条件
open cursor
insert
...
close cursor
else
open cursor
insert
...
close cursor
end if
-----------------------
open cursor
if 限制条件
insert
...
else
insert
...
end if
close cursor
-----------------------
谢谢!^_^
if 限制条件
open cursor
insert
...
close cursor
else
open cursor
insert
...
close cursor
end if
-----------------------
open cursor
if 限制条件
insert
...
else
insert
...
end if
close cursor
-----------------------
谢谢!^_^
小女子谢谢各位高手了!
决定用第二个了。
对了,这个cursor 外面还套一层cursor.