首页 \ 问答 \ 在SVG中嵌入SVG?(Embed SVG in SVG?)

在SVG中嵌入SVG?(Embed SVG in SVG?)

我有一个SVG文档,我想在其中包含一个外部的svg图像,就像:

<object data="logo.svgz" width="100" height="100" x="200" y="400"/>

(“对象”只是一个例子 - 外部文档将是SVG而不是xhtml)。

有任何想法吗? 这甚至可能吗 或者是最好的事情,我只需将logo.svg xml拖放到我的外部SVG文档中?


I have an SVG document, and I would like to include an external svg image within it, i.e. something like:

<object data="logo.svgz" width="100" height="100" x="200" y="400"/>

("object" is just an example - the outer document will be SVG rather than xhtml).

Any ideas? Is this even possible? Or is the best thing for me to simply slap the logo.svg xml into my outer SVG document?


原文:https://stackoverflow.com/questions/5451135
更新时间:2023-02-06 20:02

最满意答案

您可以使用GROUP BY执行此操作:

SELECT X.id, X.value, MIN(Y.value)
FROM X
LEFT JOIN Y ON X.id = Y.id
GROUP BY X.id, X.value

请注意,没有必要将Y.id引入混合,因为它为null或等于X.id


You can do it with GROUP BY:

SELECT X.id, X.value, MIN(Y.value)
FROM X
LEFT JOIN Y ON X.id = Y.id
GROUP BY X.id, X.value

Note that it is not necessary to bring Y.id into the mix, because it is either null or equal to X.id.

相关问答

更多
  • 您可以使用GROUP BY执行此操作: SELECT X.id, X.value, MIN(Y.value) FROM X LEFT JOIN Y ON X.id = Y.id GROUP BY X.id, X.value 请注意,没有必要将Y.id引入混合,因为它为null或等于X.id You can do it with GROUP BY: SELECT X.id, X.value, MIN(Y.value) FROM X LEFT JOIN Y ON X.id = Y.id GROUP BY X. ...
  • 当你有一个JOIN你应该有一个ON让数据库知道如何关联表: SELECT EmployeeID, EmployeeName FROM ( SELECT QuotationID, QuoteDate, EmployeeID FROM TestTable1 ) AS MainSQLquery LEFT JOIN EmployeeTable ON MainSQLquery.EmployeeID = EmployeeTable.ID GROUP BY EmployeeID LEFT JOIN从连 ...
  • 我在Access的查询设计器中重新创建了你的查询。 正如你发现的那样,查询与INNER一起处理两个连接。 但是,当我尝试将第一个INNER JOIN切换为LEFT JOIN时,查询设计者抱怨“模糊外部联接”。 两个加入的左边都是有效的,两边都是INNER。 如果第一次连接需要LEFT,第二次需要INNER,则可以将第二个连接中的表移动到子查询中。 SELECT School.[Name] AS school_name, sub.[Name] AS student_name, sub. ...
  • 我想到两个选择: 您可以使用Leave-Type作为列标题执行交叉表查询 或者您可以在两列中的每一列中放置一个公式 OFF_leave:Iif (leave_type="Off",,0) TTA_Leave:Iif (leave_type="TTA",,0) 每列将总结适当的假期类型。 Two options come to mind: You can do a cross-tab query with Leave- ...
  • 经过我的代码中的大量实验,我想出了自己的解决方案: 1.)我重新“联系”我的表关系 2.)我使用MS Access使用查询设计工具创建了一个新查询,其中:我选择了我需要的表和数据列,并按日期对其进行了排序 3.)我保存了查询设计并转到'SQL View' 4.)我复制了sql查询。 5.)转到我的IReport的报告查询并粘贴在那里 然后我点击了“阅读查询”按钮 它工作。 这是Access生成的代码: SELECT allItems.Item_Number, Incoming.Date_Inc ...
  • 我没有测试过这个,但是我经常在可能缺少日期的连接中使用NZ 。 例如: Table0.ShiftDate<=NZ(Table1.EndDate,#01/01/9999#) 尝试: UPDATE finalTbl LEFT JOIN LookupTbl ON (finalTbl.Product = LookupTbl.Product) AND (NZ(finalTbl.Detail1,finalTbl.Detail2) = Loo ...
  • 如果要将过滤器应用于数据集,请尝试在查询中使用WHERE代替AND。 SELECT t1.*, t2.* FROM t1 LEFT JOIN t2 ON t1.id=t2.id WHERE t1.field1=False I managed to get the desired result with multiple SELECT, which is disgusting, if you have a long and multiple SELECT in the first place. SELECT ...
  • 在MS Access中,您需要多个连接的括号: Select PH.[ID], PH.[SText], PH.[Datum] ,PHpol.[SText], PHpol.[Mnozstvi], PHpol.[kcJedn], PHpol.[RelSzDPH], PHpol.[SDph], skst.[ID] from ((PH LEFT JOIN PHpol ON PH.[ID] = PHpol.[RefAg] ) LEFT JOIN Skz ...
  • 也许问题可能是由于使用了LIKE通配符。 尝试*而不是%。 看到这里 。 Follow-up: I created an "Active Product" table to display new/existing products. Furthermore, I've created a seperate query that has MsgBox prompt, enabling users to search for LIKE terms by following this tutorial
  • 它实际上是在生成重复记录,还是现在从同一天返回多个记录,这些记录有不同的时间? 如果是这样,您将需要评估这些实际上是否为报告目的的重复记录。 如果是,则需要在select子句中使用min(a.time)或max(a.time)等时间来聚合时间(仅获取最早或最新的实例)并将其从组中删除。 Is it actually producing duplicate records, or is it now returning multiple records from the same date that have ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)