带有IN和SELECT子查询的CASE(CASE with IN and SELECT subquery)
我想在CASE逻辑中使用Select子查询执行IN语句(MySQL方言一直在使用)
所以查询的想法是这样的:
select a.client_id, (case when a.client_id in (select distinct a.client_id from account a where a.display_name='b') then '1' else '0' end) as binary from account a group by a.client_id order by a.client_id
它显示错误,所以我想知道它是如何被替换和重写的?
谢谢!
I want to perform IN statement with a Select subquery in a CASE logic (MySQL dialect's been using)
So the idea of the query is like this:
select a.client_id, (case when a.client_id in (select distinct a.client_id from account a where a.display_name='b') then '1' else '0' end) as binary from account a group by a.client_id order by a.client_id
It shows error, so I'm wondering how it can be replaced and rewritten?
Thanks!
原文:
最满意答案
实际上,WebRTC和sip.js服务于不同的目的。 WebRTC用于实现P2P连接以流式传输音频,视频和数据。 sip.js是SIP的JS实现,可以用作WebRTC的信令协议。 我写了一篇文章,您可以在其中找到有关WebRTC的更多详细信息以及信令协议的不同选项: https : //beradrian.wordpress.com/2015/02/05/webrtc-saga/ 。
Actually WebRTC and sip.js serve different purposes. WebRTC is used to implement P2P connection to stream audio, video and data. sip.js is a JS implementation of SIP that can be used as a signaling protocol for WebRTC. I wrote an article in where you can find more details about WebRTC and different options for signaling protocol: https://beradrian.wordpress.com/2015/02/05/webrtc-saga/.
相关问答
更多-
Node.js WebRTC客户端(Node.js WebRTC client)[2023-05-27]
我遇到同样的问题,偶然发现了这两个宝石: https://github.com/helloIAmPau/node-rtc可悲的是它缺少任何文档。 但是https://github.com/js-platform/node-webrtc对我来说似乎更可靠。 I came along the same problem and stumbled upon these two gems: https://github.com/helloIAmPau/node-rtc Sadly it is lacking any ... -
你必须去github上的“发布”页面: Aurora.js: https : //github.com/audiocogs/aurora.js/releases Flac.js: https : //github.com/audiocogs/flac.js/releases You have to go to "releases" page on github: Aurora.js: https://github.com/audiocogs/aurora.js/releases Flac.js: https ...
-
这家伙有很多有趣的WebRTC实验,包括音频/视频录制: https : //github.com/muaz-khan/ 以下是录制演示: https : //www.webrtc-experiment.com/RTCMultiConnection-v1.4-Demos/RecordRTC-and-RTCMultiConnection.html 它收集客户端上的音频和视频流,并为您提供一个音频和一个视频块,然后您可以上传/拼接在一起。 我想,不完全是你所希望的,但可能可以完成这项工作。 希望有所帮助。 Th ...
-
好的,所以我终于找到了我的问题的解决方案,我想在这里分享。 我为解决这个问题所做的是在麦克风的“普通”录音脚本中添加一行简单的代码。 录制麦克风音频的脚本是: window.AudioContext = window.AudioContext || window.webkitAudioContext; var audioGlobalContext = new AudioContext(); var audioOutputAnalyser var inputPoint = null, audioRe ...
-
最简洁的答案是不”。 WebRTC本身很新,其中一部分仍在不断发展。 尽管getUserMedia已经存在时间最长,但TideSDK使用的是非常旧版本的Webkit。 因此,许多新的“玩具”都无法使用。 您将看到对navigator.getUserMedia的调用返回undefined。 The short answer is "no". WebRTC itself is pretty new and parts of it are still evolving. Although getUserMedia ...
-
您无法关闭SRTP。 它是标准的一部分,可能永远不会删除。 密钥在DTLS密钥交换中交换,并且会有一段时间,因为Mozilla和Chrome都同意这是交换媒体的最佳和最安全的方式。 该指纹本身不是密钥,密钥通过DTLS交换,如果您在其中一台机器上使用wireshark监听,您实际上可以看到DTLS交换,这样您就可以看到交换机正在发生的事情。 您需要实现断路器以与webrtc客户端和SIP客户端连接。 SIPML5已经有一个断路器在起作用 。 You cannot turn off SRTP. It is p ...
-
Webrtc2sip:添加符号时出错:命令行中缺少DSO(Webrtc2sip: error adding symbols: DSO missing from command line)[2022-10-12]
解: 最后找到它,使用下面的选项,它的工作原理! ./configure --prefix=$PREFIX CFLAGS='-lpthread' LDFLAGS='-ldl' LIBS='-ldl' Solution: Finally find it, used following option and it works! ./configure --prefix=$PREFIX CFLAGS='-lpthread' LDFLAGS='-ldl' LIBS='-ldl' -
您可能希望在https://github.com/Mobicents/restcomm-ios-sdk上使用RestComm iOS SDK(并可能有助于)。 它使用索菲亚SIP协议栈。 I found a nice open source SIP library with small footprint called libre.
-
WebRTC或Sip.js(WebRTC or Sip.js)[2023-06-24]
实际上,WebRTC和sip.js服务于不同的目的。 WebRTC用于实现P2P连接以流式传输音频,视频和数据。 sip.js是SIP的JS实现,可以用作WebRTC的信令协议。 我写了一篇文章,您可以在其中找到有关WebRTC的更多详细信息以及信令协议的不同选项: https : //beradrian.wordpress.com/2015/02/05/webrtc-saga/ 。 Actually WebRTC and sip.js serve different purposes. WebRTC is ... -
下面是我使用自己的SIP服务器的基本节点脚本。 您需要替换自己测试的凭据和IP地址。 代理脚本不会向客户端发送重定向响应,而是代表客户端向服务器发起新事务。 在此模式下运行的SIP服务器更准确地称为背靠背用户代理(B2BUA)。 我没有添加所需的所有功能,例如匹配并将响应传递回原始客户端; 这方面涉及相当多的工作。 var sip = require('sip'); var digest = require('sip/digest'); var util = require('util'); var os ...