[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash
From: |
Greg Wooledge |
Subject: |
Re: Bash |
Date: |
Wed, 15 Apr 2020 13:13:34 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Apr 15, 2020 at 01:05:31PM -0400, Jeffrey Walton wrote:
> Well, I can't speak for others, but in the past I wanted to do
> something simple like create a SQLite database:
>
> ATTACH DATABASE 'mydb.db' AS 'mydb';
> CREATE TABLE IF NOT EXISTS mydb.username
> (
> id INTEGER PRIMARY KEY AUTOINCREMENT,
> fname VARCHAR,
> lname VARCHAR,
> email VARCHAR,
> date DATETIME
> );
>
> and insert some values:
>
> INSERT INTO mydb.username (fname, name) VALUES ("JOHN", "DOE");
>
> I quickly learned Bash was the wrong tool for the job. At the moment,
> I think it is easier to create a *.sql file and redirect it into the
> SQL interpreter.
I found Tcl to be extremely well-suited to this. I used it as the basis
of the web site <http://paste.wooledge.org/> (link to source code is
there too).
- Bash, Tony Esposito, 2020/04/12
- Re: Bash, Jonesy, 2020/04/12
- Re: Bash, Chet Ramey, 2020/04/13
- Re: Bash, Tony Esposito, 2020/04/14
- Re: Bash, Chet Ramey, 2020/04/14
- Re: Bash, Tim Visher, 2020/04/15
- Re: Bash, Jeffrey Walton, 2020/04/15
- Re: Bash, Chet Ramey, 2020/04/15
- Re: Bash, Jeffrey Walton, 2020/04/15
- Re: Bash,
Greg Wooledge <=
- Re: Bash, Chet Ramey, 2020/04/15
- Re: Bash, Tim Visher, 2020/04/15
- Re: Bash, Greg Wooledge, 2020/04/15
- Re: Bash, Stephane Chazelas, 2020/04/19