SQL Update,随时更新行。(SQL Update that Updates rows as it goes. So nothing is used Twice.)
这个很难问,但我试图搜索,找不到一个例子。
我有两个表:对于第一个表“TableA”中的每一行,第二个表“TableB”中应该有一个匹配的行。 “TableA”将有一个外键,指向它在“TableB”中的匹配记录。
我需要更新“TableA”并根据某些标准填充此外键。问题是“TableB”中的多个记录可以匹配,但我不想使用“TableB”中的任何记录不止一次。
**因此,一旦我匹配第二个表中的一个记录,我就再也不想使用它了。
我做了这项工作,一次循环“TableA”一条记录,进行更新,并在我的标准中确保我不使用“TableB”中的记录,如果它已在“TableA”中引用。
但是,这很慢。
有没有办法在单个更新语句中执行此操作? 让我知道如果你需要一个例子,我可能会假装一些东西。this one is hard to ask, but I tried to search and couldn't find an example.
I have two tables: For every row in the first table "TableA", there should be a matching row in the second table "TableB". The "TableA" will have a foreign key that points to it's matching record in "TableB".
I need to update "TableA" and populate this foreign key, based on certain criteria.. The problem is more than one record in the "TableB" could match, but I don't want to use any of the records in "TableB" more than once.
**So once I've matched one of the records in the second table I never want to use it again.
I made this work, by looping "TableA" one record at a time, making my update, and making sure in my criteria that I don't use a record from "TableB" if it is already referenced in "TableA".
However, THIS IS SLOW.
Is there some way to do this in a single update statement? Let me know if you need an example, I can probably fake something.
原文:https://stackoverflow.com/questions/35873002
最满意答案
令人尴尬,但平台/ android目录下的AndroidManifest.xml文件中存在用户错误。
然而,指令(http://www.pushwoosh.com/programming-push-notification/appcelerator-titanium-android-push-notification/)有些含糊不清 - 而不是将摘录放在标签下,确保你把它放在标签上在现有标签内。
EX:
<application> snippet here </application>
Embarrassing, but user error within the AndroidManifest.xml file under platforms/android dir.
The instructions (http://www.pushwoosh.com/programming-push-notification/appcelerator-titanium-android-push-notification/) are however somewhat vague - rather than putting the excerpts under the tag make sure you're putting it within the existing tag.
EX:
<application> snippet here </application>
相关问答
更多-
您使用的版本不匹配 您的Ti CLI是SDK 3.3.0您的SDK是3.2.3.GA在工作室中,您似乎使用的是CI版本,即3.3.0.201407100905,其本质上将是不稳定的 我想在第一个例子中你需要确保你的Ti安装是正确的,我首先要重新安装SDK到3.3.0.GA 然后使用:
ti.cloudpush 没有版本参数。 如果此时无法编译,它会告诉你一些事情。 即你的安装很糟糕。 强制使用较低版本号只会强制使用旧的不兼容库版本 Y ... -
PushWoosh Xamarin在注册时形成Android异常(PushWoosh Xamarin Forms Android exception on registration)[2023-06-26]
我通过将Xamarin.GooglePlayServices.Gcm依赖项更新为最新版本42.1021.1来解决我的问题,而我的版本是29.xx 正如Mike在评论中所说的那样,我必须确保一切都是最新的,因为PushWoosh不需要Google Play服务等关键依赖关系的高版本,但它们可能会在应用程序过期时崩溃。 在这一点上他们应该更具限制性! I solved my problem by updating the Xamarin.GooglePlayServices.Gcm dependency to ... -
检查window.plugins.pushNotification是否为null或未定义。 如果它为null(或未定义),请确保您的参考插件在config.xml中正确(“phonegap plugin add”命令应该自动为您完成所有操作)。 如果您提供更多信息,我可以改进答案。 Check if window.plugins.pushNotification is not null or undefined. If it is null (or undefined), make sure your re ...
-
令人尴尬,但平台/ android目录下的AndroidManifest.xml文件中存在用户错误。 然而,指令(http://www.pushwoosh.com/programming-push-notification/appcelerator-titanium-android-push-notification/)有些含糊不清 - 而不是将摘录放在标签下,确保你把它放在标签上在现有标签内。 EX:
snippet here Embarrass ... -
在pushwoosh推送通知中错误地触发事件和回调(Events and callbacks firing incorrectly in pushwoosh push notifications)[2022-06-14]
问题已修复,SDK已在Github上更新: https : //github.com/shaders/push-notifications-sdk和https://github.com/shaders/phonegap-cordova-push-notifications Android Phonegap示例现在还包括取消注册功能: https : //github.com/shaders/push-notifications-sdk/tree/master/SDK%20Sample%20Projects/ ... -
我强烈建议使用Pushwoosh标签(在服务器端过滤)。 但是,如果您需要过滤客户端 - 请参阅我对此问题的回答: 修改Phonegap和Pushwoosh中的通知 I would strongly recommend using Pushwoosh tags for this (filtering on the server side). However if you need to do filtering client side - see my answer to this question: Mo ...
-
要修复它,您可以执行以下操作之一: 将Cordova版本更改为1.9 用getContext替换getActivity方法。 但要小心,不要在Cordova 1.9中使用getContext方法 - 您将遇到运行时异常。 我希望它会有所帮助。 To fix it you can do one of the next things: Change Cordova version to 1.9 Replace getActivity method with getContext. But be careful, ...
-
我想插入并指向Appcelerator周围的一些StackMob引用。 Aaron Saunders在github上有几个项目,展示如何将StackMob与Appcelerator一起使用。 https://github.com/aaronksaunders 他还撰写了一系列关于它的博客文章。 http://developer.appcelerator.com/blog/2011/11/titanium-appcelerator-quickie-stackmob-api-module-part-one.ht ...
-
Appcelerator / Titanium:无法向Android发送推送通知(Appcelerator/ Titanium: Cannot send push notification to Android)[2022-08-02]
结果我的代码很好。 我使用的凭据却不正确。 请在此处查看我的其他相关问题: Appcelerator / Titanium:获取Android凭据以推送通知 文档需要更新。 Turns out my code was fine. The credentials I was using however was incorrect. Please see my other related question here: Appcelerator/ Titanium: Getting Android credent ... -
Titanium Windows SDK和Appcelerator Arrow Push目前支持Windows。 下一个Titanium 5.3版本将全部与Windows有关,因此您可以预期它将在下个季度推出。 The Titanium Windows SDK nor Appcelerator Arrow Push supports Windows at the moment. The next Titanium 5.3 release will be all about Windows so you ca ...