# OQL Syntax

Copyright (c) 2008, 2020 SAP AG and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html

Memory Analyzer has a built-in object query language (OQL) that allows to query the heap dump with custom SQL-like queries. Just think of classes as tables, objects as rows, and fields as columns. The basic syntax is this:

SELECT * FROM [ INSTANCEOF ] <class_name> [ WHERE <filter-expression>]