使用 ExecuteReader(True) 导致数据丢失 Post By:2020/12/16 14:22:00 [显示全部帖子]
以下代码一运行,就会导致数据库中表A数据被全部清空,不知何故?
Dim t As Table 't为窗口查询表
t=e.Form.Controls("Table1").Table
Dim cmd
As new
SQLCommand cmd.ConnectionName = "aaa" Dim dt As DataTable
cmd.CommandText = "S e l e c t *
From {表A} Where [_Identify] Is not null" '生成表 dt = c m d.ExecuteReader(True) '记得将参数设置为True