我通过以下查询获得ORA-00979:
SELECT cr.review_sk, cr.cs_sk, cr.full_name,
tolist(to_char(cf.fact_date, 'mm/dd/yyyy')) "appt",
cs.cs_id, cr.tracking_number
from review cr, cs, fact cf
where cr.cs_sk = cs.cs_sk
and UPPER(cs.cs_id) like '%' || UPPER(i_cs_id) || '%'
and row_delete_date_time is null
and cr.review_sk = cf.review_wk (+)
and cr.fact_type_code (+) = 183050
GROUP BY cr.review_sk, cr.cs_sk, cf.fact_date, cr.tracking_number
ORDER BY cs.cs_id, cr.full_name;
Run Code Online (Sandbox Code Playgroud)
我找不到在同一查询中同时包含GROUP BY和ORDER BY子句的任何示例.我尝试一次一个地从组中删除每个字段,但仍然得到相同的错误.
我最近发现了这种Objects.hash()
方法.
我的第一个想法是,这会整理你的hashCode()
实施.请参阅以下示例:
@Override
//traditional
public int hashCode() {
int hash = 5;
hash = 67 * hash + (int)(this.id ^ (this.id >>> 32));
hash = 67 * hash + (int)(this.timestamp ^ (this.timestamp >>> 32));
hash = 67 * hash + Objects.hashCode(this.severity);
hash = 67 * hash + Objects.hashCode(this.thread);
hash = 67 * hash + Objects.hashCode(this.classPath);
hash = 67 * hash + Objects.hashCode(this.message);
return hash;
}
@Override
//lazy
public int hashCode() {
return Objects.hash(id, timestamp, severity, thread, …
Run Code Online (Sandbox Code Playgroud) 我有一个问题似乎很简单,但我无法做对.我有一个<select>
选项列表和一个默认值.用户选择一个选项并单击按钮后,我希望select返回其默认值.
<select id="select">
<option value="defaultValue">Default</option>
<option value="Option1">Option1</option>
<option value="Option2">Option2</option>
</select>
<input type="button" value="CHANGE" onclick="selectFunction()" />
Run Code Online (Sandbox Code Playgroud)
因此,假设用户选择选项1.我使用javascript获取该值但在此之后,我希望select再次显示"Default".
我发现做document.getElementById("select").value = "defaultValue"
不行.
有谁知道如何将该值更改回默认值?
我在实现System.ComponentModel.INotifyPropertyChanged的基类中有以下方法:
protected virtual void RaisePropertyChangedEventSynchronous(string propertyName)
{
try
{
if (PropertyChanged != null)
{
Delegate[] delegates = this.PropertyChanged.GetInvocationList();
foreach (PropertyChangedEventHandler handler in delegates)
{
try
{
DispatcherObject dispatcherInvoker = handler.Target
as DispatcherObject;
if (dispatcherInvoker != null)
{
dispatcherInvoker.Dispatcher.Invoke(DispatcherPriority.Normal,
new Action(delegate
{
handler(this, new PropertyChangedEventArgs(propertyName));
}));
}
else
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
catch (Exception ex)
{
ExceptionPolicy.HandleException(ex,
ExceptionHandlingPolicyNames.LogPolicy);
}
}
}
}
catch (Exception ex)
{
ExceptionPolicy.HandleException(ex, ExceptionHandlingPolicyNames.LogPolicy);
}
}
Run Code Online (Sandbox Code Playgroud)
有时,我会将以下异常记录到文件中:
类型:System.InvalidOperationException,mscorlib,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089消息:暂停调度程序处理时无法执行此操作.来源:WindowsBase帮助链接:数据:System.Collections.ListDictionaryInternal TargetSite:Void …
我正在尝试将包含MD5哈希值和关键字(每行一个)的文本文件输入到C#应用程序中.有没有办法检查字符串是否是MD5哈希?我查看了MSDN,在MD5类中找不到任何内容.
我在asp.net web API中成功使用了承载令牌身份验证,如默认单页面应用程序模板中所示.但现在我想从不同的站点(不同的URL)使用相同的Web API.
当我从不同的站点向web API AuthorizeEndpoint(默认/ api/Account/ExternalLogin)发出请求时,出现错误:invalid_request.我想问题出在redirect_uri值中,因为将其更改为与web api在同一域上运行的站点的值可以解决问题.
应用程序OAuthAuthorizationServerProvider中的ValidateClientRedirectUri方法不会被触发.因此,基于我在Katana源中的搜索,错误来源位于OAuthAuthorizationServerHandler.InvokeAuthorizeEndpointAsync中.
有没有其他人有同样的问题或我做错了什么?
请告诉我如何从Windows机器到远程Linux JVM运行Jprofiler.
非常感谢提前.
我试图在不同的akka版本之间使用远程处理.我有一个在scala 2.10.2上运行akka 2.2.1的应用程序和在scala 2.9.2上运行akka 2.0.5的应用程序.第二个应用程序使用scala 2.10.2不可用的库,所以我不能简单地更新应用程序,也不能降级另一个应用程序.我收到一条消息错误,说消息未送达.
为了测试它,我创建了一个虚拟的2.2.1 akka应用程序,将一个String发送给2.0.5 akka actor,并将其打印到控制台.为了避免丢失发件人,2.2.1应用程序向一个actor发送一条消息,该消息将其路由到另一个版本中的actor.
这两个版本之间是否存在任何已知的兼容性问题?
我已经处理了conf文件,改变了netty和东西,所以它只应该是版本问题.虚拟应用程序如果具有相同的akka版本,则可以正常工作.
如果需要,我可以提供错误日志.
在Ruby on Rails中使用stripe的API我无法保存订阅.
我能够检索并更新和保存客户对象:
customer = Stripe::Customer.retrieve(some_customer_id) #this works
customer.save #this works
Run Code Online (Sandbox Code Playgroud)
我也能够检索订阅:subscription = customer.subscriptions.retrieve("some_subscription_id")#this works
但是,在尝试保存订阅时:subscription.save #this不起作用
我一直这样:
NoMethodError: undefined method `save' for
#<Stripe::StripeObject:0x007ff37147c720>
from /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/stripe-
1.9.9/lib/stripe/stripe_object.rb:158:in `method_missing'
Run Code Online (Sandbox Code Playgroud)
同样在尝试取消订阅时:
customer.subscriptions.retrieve("sub_3QM09lOz64QuSf").delete()
Run Code Online (Sandbox Code Playgroud)
我明白了:
NoMethodError: undefined method `delete' for
#<Stripe::StripeObject:0x007ff36d3f0d50>
from /Users/me/.rvm/gems/ruby-2.0.0-p353/gems/stripe-
1.9.9/lib/stripe/stripe_object.rb:158:in `method_missing'
Run Code Online (Sandbox Code Playgroud)
没有这个,我无法让客户直接从网站取消.
我错过了什么?
我正在尝试编写数据迁移 pl/sql 脚本,以将一个架构中的某些数据传输到另一台服务器上的不同架构。第二个数据库作为原始数据库的一个子集开始,但我们已经修改了架构。所以我不能只对每个表使用以下内容:
Insert into DB2.table_name select * from DB1.table_name2;
Run Code Online (Sandbox Code Playgroud)
我尝试搜索显示如何执行此操作的示例脚本,但找不到任何内容。