Debian Codegraph @

docs/bdb-sql/normal-sql.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Differences for Users of other SQL Engines</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Getting Started with the Oracle Berkeley DB SQL APIs" />
10 <link rel="up" href="dbsqlbasics.html" title="Chapter 1. Berkeley DB SQL: The Absolute Basics" />
11 <link rel="prev" href="sequencesupport.html" title="Using Sequences" />
12 <link rel="next" href="lockingnotes.html" title="Chapter 2. Locking Notes" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Differences for Users of other SQL Engines</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="sequencesupport.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 1. Berkeley DB SQL: The Absolute Basics</th>
26 <td width="20%" align="right"> <a accesskey="n" href="lockingnotes.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title" style="clear: both"><a id="normal-sql"></a>Differences for Users of other SQL Engines</h2>
36 </div>
37 </div>
38 </div>
39 <p>
40 If you are used to a SQL implementation from other SQL
41 engine (such as Oracle's RDBMS), the SQL used by the BDB SQL interface
42 (which is the same as used by SQLite) may hold some surprises for
43 you.
44 </p>
45 <p>
46 Some things in particular to take note of:
47 </p>
48 <div class="itemizedlist">
49 <ul type="disc">
50 <li>
51 <p>
52 Datatyping is weaker in SQLite than it is with
53 standard SQL. For example, SQLite does not
54 enforce the length of a <code class="literal">VARCHAR</code>.
55 While standard SQL will truncate a
56 <code class="literal">VARCHAR</code> that is too long, you
57 could (for example) declare a
58 <code class="literal">VARCHAR(10)</code> then put 500
59 characters in it without any truncation, ever.
60 </p>
61 <p>
62 SQLite datatyping is described in detail on the
63 Datatypes in SQLite Version 3 page.
64 </p>
65 </li>
66 <li>
67 <p>
68 Do not use autocommit with SQLite. Instead, use
69 <code class="literal">begin exclusive</code>
70 and then <code class="literal">commit</code>.
71 </p>
72 </li>
73 <li>
74 <p>
75 How NULLs are handled in SQLite may be different from what
76 you are used to. See
77
78 NULL Handling in SQLite Versus Other Database Engines
79
80 for details.
81 </p>
82 </li>
83 <li>
84 <p>
85 There are some features of SQL that SQLite does
86 not support. For more information, see
87
88 SQL Features That SQLite Does Not Implement.
89
90 </p>
91 </li>
92 </ul>
93 </div>
94 </div>
95 <div class="navfooter">
96 <hr />
97 <table width="100%" summary="Navigation footer">
98 <tr>
99 <td width="40%" align="left"><a accesskey="p" href="sequencesupport.html">Prev</a> </td>
100 <td width="20%" align="center">
101 <a accesskey="u" href="dbsqlbasics.html">Up</a>
102 </td>
103 <td width="40%" align="right"> <a accesskey="n" href="lockingnotes.html">Next</a></td>
104 </tr>
105 <tr>
106 <td width="40%" align="left" valign="top">Using Sequences </td>
107 <td width="20%" align="center">
108 <a accesskey="h" href="index.html">Home</a>
109 </td>
110 <td width="40%" align="right" valign="top"> Chapter 2. Locking Notes</td>
111 </tr>
112 </table>
113 </div>
114 </body>
115 </html>