首页 \ 问答 \ 从嵌套子查询中选择where条件(select with a where condition from nested subquery)

从嵌套子查询中选择where条件(select with a where condition from nested subquery)

有没有办法做这样的事情(从嵌套子查询中的条件选择):

SELECT 
Id, 
Name WHERE Name LIKE '%Peter%' AS Peters, 
Name WHERE Name LIKE '%Mike%' AS Mikes 
FROM 
(SELECT Id, Name FROM Customer) myset

Is there a way do something like this (a conditional select from a nested subquery):

SELECT 
Id, 
Name WHERE Name LIKE '%Peter%' AS Peters, 
Name WHERE Name LIKE '%Mike%' AS Mikes 
FROM 
(SELECT Id, Name FROM Customer) myset

原文:https://stackoverflow.com/questions/21685361
更新时间:2024-01-09 13:01

最满意答案

父母的Graphics总是落后于所有父母的孩子。 您应该自己创建另一个SpriteShape对象,将其放在显示列表的顶部,然后绘制其图形。

var spectrum:Shape=new Shape();
addChild(spectrum); // if last added, will be on top
function everyFrame(e:Event):void {
     var g:Graphics=spectrum.graphics; // that's all you need to change!
     // the rest of code follows
}

The parent's Graphics is always behind all parent's children. You should make yourself another Sprite or Shape object, place it on top of your display list, and draw on its graphics instead.

var spectrum:Shape=new Shape();
addChild(spectrum); // if last added, will be on top
function everyFrame(e:Event):void {
     var g:Graphics=spectrum.graphics; // that's all you need to change!
     // the rest of code follows
}

相关问答

更多
  • 将wmode="transparent"添加到标签。 如下所示。
  • 将wmode设置为opaque或transparent是唯一的选项,可以让它尊重html的z顺序。 这有一些缺点,因为你已经注意到了,但这是一个折衷,另一种选择是重新排列你的GUI,所以这不会发生。 setting the wmode to opaque or transparent is your only option to get it to respect the z-order of your html. this has some drawbacks as you've noticed, but ...
  • 对于所有CSS解决方案,尝试构建这样的菜单... ...
  • 此代码将向您展示如何从“Rate”和“Velocity”的指定数量计算“Bore size”(中间值)。 您可以更改inputNum_Rate和inputNum_Velo 。 例如,在该诺模图图像中,您可以看到它们的流速为100升/分钟, 速度为4.5米/秒。 中间值应约为22毫米(或0.85至0.89英寸?)。 尝试使用这两个公式来确定您认为哪个项目更精确。 行业标准的公式就是: D = Q / V (其中D =直径, Q =流速, V = 速度 )。 然而,为了与你的诺模图像紧密匹配,似乎这个其他公式更 ...
  • 父母的Graphics总是落后于所有父母的孩子。 您应该自己创建另一个Sprite或Shape对象,将其放在显示列表的顶部,然后绘制其图形。 var spectrum:Shape=new Shape(); addChild(spectrum); // if last added, will be on top function everyFrame(e:Event):void { var g:Graphics=spectrum.graphics; // that's all you need to ...
  • 不幸的是,z-index不会影响Flash Player。 请参阅此示例: http : //demos.learnswfobject.com/html-over-swf/dynamic.html (相关教程 ) 在上面链接的示例中,父元素的position:"relative" ,HTML元素的position:"absolute" 。 SWF不需要指定position 。 没有指定z-index的元素。 SWF需要将wmode设置为opaque或transparent 。 wmode:"opaque"比 ...
  • 添加参数以强制在Flash插件中使用无窗口模式。 现在你的闪光灯似乎处于窗口模式。 Add parameter to force using windowless mode in flash plugin. Now your flash seems to be in windowed mode.
  • 这是一个快速的样本。 FLA | SWF 码: import flash.display.MovieClip; for (var i=1; i<5; i++) { this["object" + i].addEventListener(MouseEvent.MOUSE_DOWN, onStart); this["object" + i].addEventListener(MouseEvent.MOUSE_UP, onStop); } var sx = 0,sy = 0; fun ...
  • 实际上,你看过另一个'wmode'吗? 我认为还有一个“正常”值,如果我没记错的话,将把你的Flash对象平放在当前容器中的一个层(就像它应该:P)上。 因此,只要确保它在自己的DIV标签内,并且也有z-index设置。 HTML Flash嵌入并不是我每天都做的事情(甚至在Chrome中测试的程度较低),但希望这会有所启发。 Actually, have you looked at the other 'wmode' available? I think there's a "normal" value ...
  • 您可以在object标签内部进行此操作 You can give this inside the object tag

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。