//判断表是否存在
        public static bool IsExist(string tablename, OracleConnection strconn)
        {
            String tableNameStr = "select count(*) from user_tables where table_name ='" + tablename.ToUpper() + "'";

            OracleCommand cmd = new OracleCommand(tableNameStr, strconn);
            int result =Convert.ToInt32(cmd.ExecuteScalar());
            if (result == 0)
            {
                return false;
            }
            else
            {
                return true;
            }
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2021-11-28
  • 2022-12-23
  • 2022-02-20
  • 2022-02-04
  • 2021-08-06
相关资源
相似解决方案