⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.query

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 QUERY
📖 第 1 页 / 共 2 页
字号:
#############select * from CQL_TestPropertyTypes where PropertyStringUint = NUMERICTOSTRING(347)select * from CQL_TestPropertyTypes where PropertyStringSint = NUMERICTOSTRING(-743)select * from CQL_TestPropertyTypes where PropertyStringReal = NUMERICTOSTRING(91.25)select * from CQL_TestPropertyTypes where PropertyStringReal = NUMERICTOSTRING(9.125e1)select * from CQL_TestPropertyTypes where '255' = NUMERICTOSTRING(PropertyUint8)select * from CQL_TestPropertyTypes where '-8' = NUMERICTOSTRING(PropertySint8)select * from CQL_TestPropertyTypes where '9.1250000000000000E1' = NUMERICTOSTRING(91.25)select * from CQL_TestPropertyTypes where '6.4000000000000000E1' = NUMERICTOSTRING(PropertyReal64)# Errorsselect * from CQL_TestPropertyTypes where PropertyStringSint = NUMERICTOSTRING(-743, -10)select * from CQL_TestPropertyTypes where PropertyStringSint = NUMERICTOSTRING()select * from CQL_TestPropertyTypes where PropertyStringSint = NUMERICTOSTRING(PropertyStringUint)############## ReferenceToString#############select * FROM CQL_TestPropertyTypes where referencetostring(CQL_TestPropertyTypes) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'# Errorsselect * FROM CQL_TestPropertyTypes where referencetostring() = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'select * FROM CQL_TestPropertyTypes where referencetostring(TestPropertyTypes) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'############## ClassName#############select * FROM CQL_TestPropertyTypes where classname() = 'CQL_TestPropertyTypes'select * FROM CQL_TestPropertyTypes where classname(CQL_TestPropertyTypes) = 'CQL_TestPropertyTypes'select * FROM CQL_TestPropertyTypes where classname('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2') = 'CQL_TestPropertyTypes'# Errorsselect * FROM CQL_TestPropertyTypes where classname('//a.b.com/root/SampleProvider/CQL_TestPropertyTypes.InstanceId=2') = 'CQL_TestPropertyTypes'select * FROM CQL_TestPropertyTypes where classname(TestPropertyTypes) = 'CQL_TestPropertyTypes'############## nameSpaceName#############select * FROM CQL_TestPropertyTypes where NamespaceName() = 'root/SampleProvider'select * FROM CQL_TestPropertyTypes where NamespaceName(CQL_TestPropertyTypes) = 'root/SampleProvider'select * FROM CQL_TestPropertyTypes where NamespaceName('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2') = 'root/SampleProvider'# Errorsselect * FROM CQL_TestPropertyTypes where NamespaceName('//a.b.com/root/SampleProvider/CQL_TestPropertyTypes.InstanceId=2') = 'root/SampleProvider'select * FROM CQL_TestPropertyTypes where NamespaceName(TestPropertyTypes) = 'root/SampleProvider'############## nameSpaceType############## NOT SUPPORTEDselect * FROM CQL_TestPropertyTypes where NamespaceType() = 'Function Not supported'############## hostPort#############select * FROM CQL_TestPropertyTypes where HostPort(CQL_TestPropertyTypes) = 'a.b.com'select * FROM CQL_TestPropertyTypes where HostPort('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2') = 'a.b.com'# Errorsselect * FROM CQL_TestPropertyTypes where HostPort() = 'a.b.com'select * FROM CQL_TestPropertyTypes where HostPort('//a.b.com/root/SampleProvider/CQL_TestPropertyTypes.InstanceId=2') = 'a.b.com'select * FROM CQL_TestPropertyTypes where HostPort(TestPropertyTypes) = 'a.b.com'############## modelPath#############select * FROM CQL_TestPropertyTypes where ModelPath() = 'CQL_TestPropertyTypes.InstanceId=2'select * FROM CQL_TestPropertyTypes where ModelPath(CQL_TestPropertyTypes) = 'CQL_TestPropertyTypes.InstanceId=2'select * FROM CQL_TestPropertyTypes where ModelPath('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2') = 'CQL_TestPropertyTypes.InstanceId=2'# Errorsselect * FROM CQL_TestPropertyTypes where ModelPath('//a.b.com/root/SampleProvider/CQL_TestPropertyTypes.InstanceId=2') = 'CQL_TestPropertyTypes.InstanceId=2'select * FROM CQL_TestPropertyTypes where ModelPath(TestPropertyTypes) = 'CQL_TestPropertyTypes.InstanceId=2'############## classPath#############select * from CQL_TestPropertyTypes where referencetostring(classpath()) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'select * from CQL_TestPropertyTypes where referencetostring(classpath(CQL_TestPropertyTypes)) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'select * from CQL_TestPropertyTypes where referencetostring(classpath('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2')) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'# Errorsselect * from CQL_TestPropertyTypes where referencetostring(classpath(TestPropertyTypes)) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'select * from CQL_TestPropertyTypes where referencetostring(classpath('//a.b.com/root/SampleProvider/CQL_TestPropertyTypes.InstanceId=2')) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'############## objectPath#############select * from CQL_TestPropertyTypes where referencetostring(objectPath()) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'select * from CQL_TestPropertyTypes where referencetostring(objectPath(CQL_TestPropertyTypes)) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'select * from CQL_TestPropertyTypes where referencetostring(objectPath('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2')) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'# Errorsselect * from CQL_TestPropertyTypes where referencetostring(objectPath(TestPropertyTypes)) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'select * from CQL_TestPropertyTypes where referencetostring(objectPath('//a.b.com/root/SampleProvider/CQL_TestPropertyTypes.InstanceId=2')) = '//a.b.com/root/SampleProvider:CQL_TestPropertyTypes'############## instanceToReference#############select * from CQL_TestPropertyTypes where referencetostring(instanceToReference()) = 'root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'select * from CQL_TestPropertyTypes where referencetostring(instanceToReference(CQL_TestPropertyTypes)) = 'root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'# Errorsselect * from CQL_TestPropertyTypes where referencetostring(instanceToReference('//a.b.com/root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2')) = 'root/SampleProvider:CQL_TestPropertyTypes.InstanceId=2'############## currentDateTime#############select * FROM CQL_TestPropertyTypes where CURRENTDATETIME() > PropertyDateTime# Invalid to pass a parmselect * FROM CQL_TestPropertyTypes where CURRENTDATETIME('0') > PropertyDateTime############## dateTime#############select * FROM CQL_TestPropertyTypes where DATETIME('20040811105625.000000-360') = PropertyDateTime# Errorsselect * FROM CQL_TestPropertyTypes where DATETIME('2004081110562') = PropertyDateTimeselect * FROM CQL_TestPropertyTypes where DATETIME('') = PropertyDateTimeselect * FROM CQL_TestPropertyTypes where DATETIME() = PropertyDateTimeselect * FROM CQL_TestPropertyTypes where DATETIME(54) = PropertyDateTime############## microsecondToTimestamp#############select * FROM CQL_TestPropertyTypes where MICROSECONDTOTIMESTAMP(63259462585000000) = PropertyDateTime# Errorsselect * FROM CQL_TestPropertyTypes where MICROSECONDTOTIMESTAMP('63259370000') = PropertyDateTimeselect * FROM CQL_TestPropertyTypes where MICROSECONDTOTIMESTAMP() = PropertyDateTime############## microsecondToInterval#############select * FROM CQL_TestPropertyTypes where MICROSECONDTOINTERVAL(1066666660424123456) = PropertyInterval# Errorsselect * FROM CQL_TestPropertyTypes where MICROSECONDTOINTERVAL('1023456') = PropertyIntervalselect * FROM CQL_TestPropertyTypes where MICROSECONDTOINTERVAL() = PropertyInterval

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -