# 5. Tables : Managed

![](/files/-MFiKG9WIZYZ7gMgljxz)

\>>To create managed table in Apache Spark we have two possibilities ::&#x20;

a) First one is to save the content of a dataframe as a table and

b) the secind one is to create any empty table & then LOAD data into the table.

IMPORTANT : So whenever is create any Managed table in Spark Databricks . It automatically writes data to the below directory path :

&#x20;      Spark SQL is intehrated with Hive Metastore.

![](/files/-MFiLfXk-mVq1r8gfcJe)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://architectures.gitbook.io/project/databricks-fundamentals-and-apache-spark-core/spark-sql-and-sql-fundamentals/5.-tables-managed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
