# Complex Oracle To Datatable

Runs a complex query and returns the result as a `DataTable`.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `ConnectionSettings` | [`PAWOracleConnectionSettings`](/doc/paworacleconnectionsettings-iU7nVgLHWn) | ✅Yes     | Contains the Oracle database connection information. |
| `Query`   | `String` | ✅Yes     | Query statement. |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsComplexOracleToDatatableSuccessful` | `Boolean` | Returns "**True**" if the operation succeeds, "**False**" if it fails. |
| `ComplexOracletoDatatableMessage` | `String` | Returns the error information received if the operation fails. |
| `ComplexOracleToDatatableResult` | `DataTable` | Collection data produced by the operation. |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |