![]() |
SQL Primary Key ?
How could I set a coloumn as a Primary Key in sql?
|
From the SQLite documentation:
Quote:
Quote:
Depending on what you're doing, rowid may suit your needs, but keep in mind that it can change (so don't rely on it staying the same). If you want to map rows between tables (like with foreign keys), you should use PRIMARY KEY. |
AH, thank you for that. I was just trying to create an INTEGER PRIMARY KEY from the 'Create Table' gui from the SQL Explorer and couldn't find out how to do this easily.
|
| All times are GMT +2. The time now is 10:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.