E
e_ceo
Unregistered / Unconfirmed
GUEST, unregistred user!
我的一个师兄在打开数据库时,通常这样写
if not table1.active then table1.open;
而我觉得应该
if table1.active=true then table1.close;
table1.open;
因为他在读库时,不关闭其他程序打开的库,有可能读写冲突。是这样的吗?
我想找点资料证明我这样写冲突是最小的,但始终找不到!
if not table1.active then table1.open;
而我觉得应该
if table1.active=true then table1.close;
table1.open;
因为他在读库时,不关闭其他程序打开的库,有可能读写冲突。是这样的吗?
我想找点资料证明我这样写冲突是最小的,但始终找不到!