---
title: "Use of QLC with Mnesia in Erlang programming."  
description: "Use of QLC with Mnesia in Erlang programming."  
author: "Tarun Kumar"  
published: 2016-03-15  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/23000/use-of-qlc-with-mnesia-in-erlang-programming  
category: "erlang"  
tags: ["erlang"]  
reading_time: 2 minutes  

---

# Use of QLC with Mnesia in Erlang programming.

QLC stands for 'Query List Comprehension' which is used with Mnesia database, to enhance the operational ability of Mnesia. QLC having our own documentation as a part of the OTP documentation set.\
**Main features of QLC with Mnesia are as follows:**\

QLC is used to optimize the query compiler for Mnesia Database. and for making Mnesia DBMS more efficient.\
QLC is used like a database programming language for Mnesia and it includes a notation called "list comprehensions" and can be used to make complex database queries over a set of tables.

**QLC Syntax: [Expression || Qualifier1, Qualifier2, ...]**\
Expression - it is an Erlang expression (template)\
Qualifiers - these are the filters (erlang expressions) or generators (List Expressions)

## Answers

### Answer by Tarun Kumar

QLC stands for 'Query List Comprehension' which is used with Mnesia database, to enhance the operational ability of Mnesia. QLC having our own documentation as a part of the OTP documentation set.\
**Main features of QLC with Mnesia are as follows:**\

QLC is used to optimize the query compiler for Mnesia Database. and for making Mnesia DBMS more efficient.\
QLC is used like a database programming language for Mnesia and it includes a notation called "list comprehensions" and can be used to make complex database queries over a set of tables.

**QLC Syntax: [Expression || Qualifier1, Qualifier2, ...]**\
Expression - it is an Erlang expression (template)\
Qualifiers - these are the filters (erlang expressions) or generators (List Expressions)


---

Original Source: https://www.mindstick.com/interview/23000/use-of-qlc-with-mnesia-in-erlang-programming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
