怎么判断某个表是否存在数据库表中呢? Post By:2022/10/4 11:38:00 [显示全部帖子]
怎么判断某个表是否存在数据库表中呢?
当前代码如下:
cmd1.CommandText = "se le ct * from 文书名称表" If cmd1.ExecuteScalar > 0 Then Dim dt As DataTable = cmd1.ExecuteReader() Dim Products As List(Of String) Products = dt.sqlGetValues("对应表名") For Each Product As String In Products cmd1.CommandText = "D ELE TE FROM {" & Product & "} " cmd1.ExecuteNonQuery() Next End If