Relació
Introducció
Section titled “Introducció”El model relacional es basa en taules que es relacionen unes amb les altres pels valors compartits d’una o més columnes
Chinook Database
Section titled “Chinook Database”Chinook is a sample database available for SQL Server, Oracle, MySQL, etc. It can be created by running a single SQL script. Chinook database is an alternative to the Northwind database, being ideal for demos and testing ORM tools targeting single and multiple database servers.
Baixa la base de dades:
https://github.com/lerocha/chinook-database/releases/download/v1.4.5/Chinook_Sqlite.sqlite
Obre la base de dades:
> sqlite chinook.db
Amb l’ordre .databases
pots veure totes les base de dades que tens obertes:
sqlite> .databasesmain: C:\Users\david\workspace\sqlite\chinook.db r/w
Amb l’ordre .table
pots veure totes les taules de la base de dades chinook
:
sqlite> .tables.tablesAlbum Employee InvoiceLine PlaylistTrackArtist Genre MediaType TrackCustomer Invoice Playlist
Am l’ordre .schema
pots veure l’estructura d’una taula:
sqlite> .schema ArtistCREATE TABLE [Artist]( [ArtistId] INTEGER NOT NULL, [Name] NVARCHAR(120), CONSTRAINT [PK_Artist] PRIMARY KEY ([ArtistId]));
El contingut d'aquest lloc web té llicència CC BY-NC-ND 4.0.
©2022-2025 xtec.dev