是否存在大致相当于example.com的SSN - 广泛(并且官方)仅被认为是示例/测试值的东西?
澄清:根据我的评论,我真正要问的是,如果有一个规范使用的规范"测试SSN",那么所有看到它不是真正的SSN的人都能理解.
假设我有一个非常简单的XML,带有空标记'B':
<Root>
<A>foo</A>
<B></B>
<C>bar</C>
</Root>
Run Code Online (Sandbox Code Playgroud)
我目前正在使用XSLT删除一些标签,例如'C':
<?xml version="1.0" ?>
<xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no" encoding="utf-8" omit-xml-declaration="yes" />
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
<xsl:template match="C" />
</xsl:stylesheet>
Run Code Online (Sandbox Code Playgroud)
到目前为止还好,但问题是我最终得到这样的输出:
<Root>
<A>foo</A>
<B/>
</Root>
Run Code Online (Sandbox Code Playgroud)
当我真正想要的时候:
<Root>
<A>foo</A>
<B></B>
</Root>
Run Code Online (Sandbox Code Playgroud)
有没有办法阻止'B'崩溃?
谢谢.
我在Oracle Express中使用了HR员工架构,我想选择在特定年份雇用的员工.
SELECT hire_date,
COUNT(*)
FROM employees empl
GROUP BY SUBSTR(hire_date, -4)
ORDER BY empl.hire_date;
Run Code Online (Sandbox Code Playgroud)
hire_date列的格式为"1/1/2011",所以我想通过提取最后四个字符对它们进行分组.
问题是,我遇到了以下错误
ORA-00979: not a GROUP BY expression
00979. 00000 - "not a GROUP BY expression"
*Cause:
*Action:
Error at Line: 1 Column: 7
Run Code Online (Sandbox Code Playgroud)
这不可能吗?
用一列获得表ABC.日期列"已创建".所以样本值是这样的;
created
2009-06-18 13:56:00
2009-06-18 12:56:00
2009-06-17 14:02:00
2009-06-17 13:12:23
2009-06-16 10:02:10
Run Code Online (Sandbox Code Playgroud)
我想编写一个查询,以便结果如下:
count created
2 2009-06-18
2 2009-06-17
1 2009-06-16
Run Code Online (Sandbox Code Playgroud)
基本上计算每个日期属于多少条目,但忽略时间.
这是与Oracle的PL-SQL.
有任何想法吗?