我正在运行一个创建表然后插入一些数据的程序.
这是访问数据库的唯一程序.
我正在随机获得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) 假设我创建了降序索引
CREATE INDEX `MyTable.MyIndex`
USING BTREE ON `MyTable` (`DateFrom` DESC, `DateTo` DESC);
Run Code Online (Sandbox Code Playgroud)
我想从 获取有关它的信息information_schema。
根据文档 information_schema.statistics表完成这项工作。但是我找不到有关索引列顺序(即ASC或DESC)的任何信息。
我怎样才能找到这些信息?