This file is indexed.

/usr/share/doc/cl-sql/html/insert-records.html is in cl-sql 6.5.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>INSERT-RECORDS</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="CLSQL Users' Guide" /><link rel="up" href="ref-fdml.html" title="Functional Data Manipulation Language (FDML)" /><link rel="prev" href="cache-table-queries.html" title="CACHE-TABLE-QUERIES" /><link rel="next" href="update-records.html" title="UPDATE-RECORDS" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">INSERT-RECORDS</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="cache-table-queries.html">Prev</a> </td><th width="60%" align="center">Functional Data Manipulation Language (FDML)</th><td width="20%" align="right"> <a accesskey="n" href="update-records.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="insert-records"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>INSERT-RECORDS — Insert tuples of data into a database table.<strong>Function</strong></p></div><div class="refsect1"><a id="idp62309472"></a><h2>Syntax</h2><pre class="synopsis">
      <code class="function">insert-records</code> &amp;key <em class="replaceable"><code>into</code></em> <em class="replaceable"><code>attributes</code></em> <em class="replaceable"><code>values</code></em> <em class="replaceable"><code>av-pairs</code></em> <em class="replaceable"><code>query</code></em> <em class="replaceable"><code>database</code></em> =&gt; <span class="returnvalue"></span></pre></div><div class="refsect1"><a id="idp62314624"></a><h2>Arguments and Values</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>into</code></em></span></dt><dd><p>
              A string, symbol or symbolic SQL expression representing
              the name of a table existing in
              <em class="parameter"><code>database</code></em>.
            </p></dd><dt><span class="term"><em class="parameter"><code>attributes</code></em></span></dt><dd><p>
              A list of attribute identifiers or <code class="constant">NIL</code>. 
            </p></dd><dt><span class="term"><em class="parameter"><code>values</code></em></span></dt><dd><p>
              A list of attribute values or <code class="constant">NIL</code>.               
            </p></dd><dt><span class="term"><em class="parameter"><code>av-pairs</code></em></span></dt><dd><p>
              A list of attribute identifier/value pairs or <code class="constant">NIL</code>. 
            </p></dd><dt><span class="term"><em class="parameter"><code>query</code></em></span></dt><dd><p>
              A query expression or <code class="constant">NIL</code>. 
            </p></dd><dt><span class="term"><em class="parameter"><code>database</code></em></span></dt><dd><p>A 
            <a class="glossterm" href="glossary.html#gloss-database-object"><em class="glossterm">database
            object</em></a>. This will default to the value
            of <span class="symbol">*default-database*</span>.</p></dd></dl></div></div><div class="refsect1"><a id="idp62332832"></a><h2>Description</h2><p>
        Inserts records into the table specified by
        <em class="parameter"><code>into</code></em> in <em class="parameter"><code>database</code></em>
        which defaults to <span class="symbol">*default-database*</span>. 
      </p><p>
        There are five ways of specifying the values inserted into
        each row. In the first <em class="parameter"><code>values</code></em> contains
        a list of values to insert and
        <em class="parameter"><code>attributes</code></em>,
        <em class="parameter"><code>av-pairs</code></em> and
        <em class="parameter"><code>query</code></em> are <code class="constant">NIL</code>. This can be used when
        values are supplied for all attributes in
        <em class="parameter"><code>into</code></em>. In the second,
        <em class="parameter"><code>attributes</code></em> is a list of column names,
        <em class="parameter"><code>values</code></em> is a corresponding list of
        values and <em class="parameter"><code>av-pairs</code></em> and
        <em class="parameter"><code>query</code></em> are <code class="constant">NIL</code>. In the third,
        <em class="parameter"><code>attributes</code></em>,
        <em class="parameter"><code>values</code></em> and <em class="parameter"><code>query</code></em>
        are <code class="constant">NIL</code> and <em class="parameter"><code>av-pairs</code></em> is an alist of
        (attribute value) pairs. In the fourth,
        <em class="parameter"><code>values</code></em>, <em class="parameter"><code>av-pairs</code></em>
        and <em class="parameter"><code>attributes</code></em> are <code class="constant">NIL</code> and
        <em class="parameter"><code>query</code></em> is a symbolic SQL query
        expression in which the selected columns also exist in
        <em class="parameter"><code>into</code></em>. In the fifth method,
        <em class="parameter"><code>values</code></em> and
        <em class="parameter"><code>av-pairs</code></em> are nil and
        <em class="parameter"><code>attributes</code></em> is a list of column names
        and <em class="parameter"><code>query</code></em> is a symbolic SQL query
        expression which returns values for the specified columns.
      </p></div><div class="refsect1"><a id="idp62354320"></a><h2>Examples</h2><pre class="screen">
(select [first-name] [last-name] [email] 
        :from [employee]
        :where [= [emplid] 11] 
        :field-names nil)
=&gt; NIL
(insert-records :into [employee] 
                :attributes '(emplid groupid first_name last_name email 
                              ecompanyid managerid)
                :values '(11 1 "Yuri" "Gagarin" "gagarin@soviet.org" 
                          1 1))
=&gt; 
(select [first-name] [last-name] [email] 
        :from [employee]
        :where [= [emplid] 11] 
        :field-names nil)
=&gt; (("Yuri" "Gagarin" "gagarin@soviet.org"))
      </pre></div><div class="refsect1"><a id="idp62356496"></a><h2>Side Effects</h2><p>
        Modifications are made to the underlying database. 
      </p></div><div class="refsect1"><a id="idp62357888"></a><h2>Affected by</h2><p>
        None. 
      </p></div><div class="refsect1"><a id="idp62359232"></a><h2>Exceptional Situations</h2><p>
        An error of type <span class="symbol">sql-database-data-error</span> is
        signalled if <em class="parameter"><code>table</code></em> is not an existing
        table in <em class="parameter"><code>database</code></em> or if the specified
        attributes are not found. 
      </p></div><div class="refsect1"><a id="idp62362560"></a><h2>See Also</h2><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="link" href="update-records.html" title="UPDATE-RECORDS"><code class="function">update-records</code></a></td></tr><tr><td><a class="link" href="delete-records.html" title="DELETE-RECORDS"><code class="function">delete-records</code></a></td></tr></table></div><div class="refsect1"><a id="idp62366672"></a><h2>Notes</h2><p>
        None. 
      </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="cache-table-queries.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref-fdml.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="update-records.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">CACHE-TABLE-QUERIES </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> UPDATE-RECORDS</td></tr></table></div></body></html>