This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: SQL commands markup
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: SQL commands markup
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Fri, 28 Jul 2000 06:31:03 -0400
- References: <kpu2db2epo.fsf@dagon.casa>
- Reply-to: Norman Walsh <ndw at nwalsh dot com>
/ Jorge Godoy <godoy@conectiva.com> was heard to say:
| > LOAD DATA [LOW_PRIORITY] [LOCAL] INFILE 'file_name.txt'
| > [REPLACE | IGNORE]
| > INTO TABLE tbl_name
| > [FIELDS
| > [TERMINATED BY 't']
| > [OPTIONALLY] ENCLOSED BY '']
| > [ESCAPED BY '\' ]]
| > [LINES TERMINATED BY 'n']
| > [IGNORE number LINES]
| > [(col_name,...)]
|
| I'm not an SQL expert, but some of my authors are requesting me that.
I think we'd need some imput from SQL experts here. At first glance,
that looks like it could be:
<cmdsynopsis role="sql">
<command>load data</command>
<arg>low_priority</arg>
<arg>local</arg>
<arg choice="req">infile
<arg choice="req">'<replaceable>file_name.txt</replaceable>'</arg>
</arg>
<group>
<arg>replace</arg>
<arg>ignore</arg>
</group>
...
</cmdsynopsis>
And then an important question is, what are the rules/conventions for
formatting one of these things?
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Nature is amoral, not immoral.
http://www.oasis-open.org/docbook/ | [It] existed for eons before we
Chair, DocBook Technical Committee | arrived, didn't know we were
| coming, and doesn't give a damn
| about us.--Stephen J. Gould