[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org-mode as a metalanguage: calling SQL "functions"
From: |
Mike Gauland |
Subject: |
Re: [O] Org-mode as a metalanguage: calling SQL "functions" |
Date: |
Mon, 1 Apr 2013 20:41:01 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Gary Oberbrunner <garyo <at> oberbrunner.com> writes:
> Is this supposed to work?
> -- Gary
I'm not sure how it's /supposed/ to work, either, but this example works for a
sqlite database I've been playing with:
#+NAME: artist
#+BEGIN_SRC sqlite :db the_sound_A-Z.sql :var song_title=""
select artist from playlist where title=="$song_title";
#+END_SRC
#+CALL: artist(song_title="Pressure")
#+RESULTS: artist(song_title="Pressure")
: Billy Joel
Note the need for double quotes around $song_title in the SRC block.
I'm using the latest from git, and emacs 23.2.1 on Debian.
Hope that helps.
Kind Regards,
Mike Gauland
- [O] Org-mode as a metalanguage: calling SQL "functions", Gary Oberbrunner, 2013/04/01
- Re: [O] Org-mode as a metalanguage: calling SQL "functions",
Mike Gauland <=
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Eric Abrahamsen, 2013/04/01
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Eric Schulte, 2013/04/01
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Eric Abrahamsen, 2013/04/01
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Gary Oberbrunner, 2013/04/01
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Eric Schulte, 2013/04/02
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Andreas Röhler, 2013/04/03
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Carsten Dominik, 2013/04/03
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Eric Schulte, 2013/04/03
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Sebastien Vauban, 2013/04/04
- Re: [O] Org-mode as a metalanguage: calling SQL "functions", Eric Schulte, 2013/04/04