Identifiers

PQL recognizes an identifier as any sequence of characters that start with a letter, and can include letters, underscores, and numbers. Identifiers are case-insensitive, with some exceptions. Identifiers must start with a letter, and cannot include spaces. You cannot use a reserved word as an identifier, unless you surround it with double quotes, as shown in the following examples.

You can try the following examples against your own data in the GoToManage search field, or against fictitious data in the Query Sandbox:


Example 1: Misuse of reserved word

Query: Find the value of the Index node.

SELECT * 
FROM /network/device/wmi/win32_networkadaptersetting/element/index

Result: GoToManage returns an error message because INDEX is a reserved word:


Example 2: Proper use of reserved word

Query: Find the value of the "Index" node.

SELECT * 
FROM /network/device/wmi/win32_networkadaptersetting/element/"index\"

Result: The use of double quotes around "index\" changes it from a reserved word into an identifier that produces a result.

row
   * 1
row
   * 2
row
   * 3 
   . . .

 

Mac, iPad, and the Mac logo are trademarks of Apple, Inc. registered in the U.S. and other countries.