小编Den*_*s K的帖子

只用一个活动会话随机获得ORA-08177

我正在运行一个创建表然后插入一些数据的程序.
这是访问数据库的唯一程序.
我正在随机获得ORA-08177.
实际代码有点复杂,但我编写了一个简单的程序来重现这种行为.

using System;
using System.Data;
using Oracle.DataAccess.Client;

namespace orabug
{
  class Program
  {
    private const string ConnectionString = ""; // Valid connection string here

    // Recreates the table
    private static void Recreate()
    {
      using (var connection = new OracleConnection(ConnectionString)) {
        connection.Open();
        using (var command = connection.CreateCommand()) {
          command.CommandText = @"
            declare
              table_count binary_integer;
            begin
              select count(*) into table_count from sys.user_tables where table_name = 'TESTTABLE';
              if table_count > 0 then
                execute immediate 'drop table TestTable purge';
              end if; …
Run Code Online (Sandbox Code Playgroud)

oracle odp.net ora-08177

21
推荐指数
2
解决办法
1万
查看次数

从 MySQL 中的信息模式获取索引方向

假设我创建了降序索引

CREATE INDEX `MyTable.MyIndex`
USING BTREE ON `MyTable` (`DateFrom` DESC, `DateTo` DESC);
Run Code Online (Sandbox Code Playgroud)

我想从 获取有关它的信息information_schema

根据文档 information_schema.statistics表完成这项工作。但是我找不到有关索引列顺序(即ASCDESC)的任何信息。

我怎样才能找到这些信息?

mysql indexing information-schema

4
推荐指数
1
解决办法
771
查看次数