---
title: "runFromSql"
canonical: "https://support.appfire.com/space/SCLI/73368459/runFromSql"
format: markdown
---
See also: [Actions](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368507)

> Macro (details)
> 
> | **Description** | Run actions generated by SQL provided by the sql parameter, a file, or standard input. Replacement variables will be set representing each column (case sensitive, blanks removed) in the result set and the corresponding column value for each row processed. |
> | --- | --- |
> | **Required Parameters** | [sql](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368639), ([file](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370741) or [common](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370645) or [input](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371353)), ([database](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370548) or [url](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371525)) |
> | **Optional Parameters** | [dbUser](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370701), [dbPassword](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371216), [propertyFile](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371635), [continue](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371170), [simulate](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368863), [field](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371343), [encoding](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368755), [clearFileBeforeAppend](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371184), [findReplace](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370579), [findReplaceRegex](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370799) |
> | **Type** | [Run](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370540/Action+Types#ActionTypes-Run) |
> | **Category** | [Run](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371318/Action+Categories#ActionCategories-Run) |
> | **Output Formats** |  |
> | **Replacement Variables** |  |
> | **Hosting** |  |
> | **Since Version** |  |
> | **Examples** |  |

## Related How To's

> Macro (cql-query)