~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to Code_python/Database/py_db_api.html

  • Committer: Dave Kuhlman
  • Date: 2015-10-03 18:25:17 UTC
  • mfrom: (35.1.5 Materials)
  • Revision ID: dkuhlman@davekuhlman.org-20151003182517-b2m7eltjdapw46zh
Review for Cisco.  Merged checkpoint 10

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
<head>
5
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
 
<meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
 
6
<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
7
7
<title>Python Database API</title>
8
8
<style type="text/css">
9
9
 
186
186
  font-family: sans-serif }
187
187
 
188
188
tt.docutils {
189
 
  background-color: #eeeeee;
 
189
  background-color: #dddddd;
190
190
}
191
191
 
 
192
ul.auto-toc {
 
193
  list-style-type: none }
 
194
 
192
195
</style>
193
196
</head>
194
197
<body>
203
206
table in a database: information about the table and all the rows in a
204
207
database.</p>
205
208
<p>Apply your script to the database file <tt class="docutils literal">data01.db</tt> in this
206
 
directory.  It contains a table named <tt class="docutils literal">plants</tt>.</p>
 
209
directory.</p>
 
210
<ul class="simple">
 
211
<li>It contains a table named &quot;plants&quot;.</li>
 
212
<li>This table has the following fields: &quot;p_name&quot;, &quot;p_descrip&quot;, and
 
213
&quot;p_rating&quot;.</li>
 
214
</ul>
207
215
<ol class="arabic">
208
216
<li><p class="first">Open/create a connection to the database.</p>
209
217
</li>
299
307
<div class="footer">
300
308
<hr class="footer" />
301
309
<a class="reference external" href="py_db_api.txt">View document source</a>.
 
310
Generated on: 2015-10-03 00:12 UTC.
302
311
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
303
312
 
304
313
</div>