小编use*_*141的帖子

“ORA-00933:SQL 命令未正确结束”使用 Oracle.ManagedDataAccess

我得到了我只能描述为来自 nuget 的 oracle.ManagedDataAccess 包,似乎在我的查询末尾添加了字符。

我的最终目标是以 C# 命令参数的形式为下面的 SQL 提供绑定变量。

我的查询:(如果使用 SQL Developer 执行可以正常工作,返回 3 个字符串和一个日期时间)

with max_shift as (
  select max(shi.shift_id) shift_id
  from source_schema.site_instance ins
    join source_schema.tu_move_shifts shi on ins.instance_id = shi.instance_id
  where ins.instance_name = 'SiteOneSubsiteTwo' 
),
max_values as (
  select max(end_time) event_time 
  from max_shift ms
    join source_schema.events_extract ev on ev.move_shift_id = ms.shift_id
  where ev.site_code = 'SiteOne'

  union all 

  select max(destination_arrive_time) event_time
  from max_shift ms 
    join source_schema.movements_extract mov on mov.move_shift_id = ms.shift_id
  where mov.destination_site_code = 'SiteOne'
)
select 'Data …
Run Code Online (Sandbox Code Playgroud)

c# oracle oracle-manageddataaccess

3
推荐指数
1
解决办法
4504
查看次数

标签 统计

c# ×1

oracle ×1

oracle-manageddataaccess ×1