SQLite Forum

Feature request: Dynamically execute SQL from shell
Login
Imagine something this:

```
create table sql(stmt,notes);
insert into sql values('update t set name = trim(name)','Trim all names in t');
...

exec(select stmt from sql);
```

This would execute each SQL statement retrieved by `SELECT` from the sql table.

Many applications, such as automatically conditioning data by running multiple SQL statements in sequence.