🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1477

Auto Increment Question

#1477
From: Kim Utley
Date: Wed, 30 Jun 2004 19:46
10 lines
1202 bytes
I have the need to use an autoincrement field in a database so the primary
key will be unique. However I don't know the SQL syntax for it. I've tried
"AUTO_INCREMENT", "AUTOINC" and "AUTO_INC" when creating the table fields
but get a failure "Syntax error in field definition". Does anyone have a
brief example of doing this or the syntax?

Kindest Regards,


Kim Utley
Technical Details
Message-ID: <40e31878$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,7e1df2a336eac17,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kim Utley" <kim@simsware.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Auto Increment Question
Date: Wed, 30 Jun 2004 14:46:01 -0500
Lines: 12
Organization: SIMS, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 65.205.74.2
Message-ID: <40e31878$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088624760 65.205.74.2 (30 Jun 2004 12:46:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail