gettingstarted
[Top] [All Lists]

Re: Mysterious Window Appearance & SQL error

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Mysterious Window Appearance & SQL error
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Sat, 29 May 2004 08:09:38 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <a3 dot 5a6da81b dot 2de98d0f at aol dot com>

On May 29, 2004, at 1:51 AM, GAmoore at aol dot com wrote:

1. I try to create a database table and I keep getting SQL error #7 -
"missing comma or parentheses"
on this :
db.SQLExecute("create table classes( id integer not null, primary
key (id))")

Unfortunately that section of the online reference is out of date and needs to be updated. The new REAL Database doesn't support column constraints, such as "not null", and it has one primary key built in for you already. To create a table, you can say:

db.SQLExecute "create table classes( id integer )"

However, since the new REAL Database has a _rowid column built into each table, a field such as "id" becomes much more useless.

HTH,
Jon


--
Jonathan Johnson
Testing Department
REAL Software, Inc.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>