Jij hebt de controle

Introductie tot SQL Server

John MacKintosh

Instructor

CRUD-bewerkingen

CREATE

  • Databases, tabellen of views
  • Gebruikers, rechten en beveiligingsgroepen

READ

  • Voorbeeld: SELECT-statements

UPDATE

  • Bestaande database­records aanpassen

DELETE

Introductie tot SQL Server

CREATE

  • CREATE TABLE unieke_tabelnaam
  • (kolomnaam, datatype, grootte)
CREATE TABLE test_table(
  test_date date, 
  test_name varchar(20), 
  test_int int
)
Introductie tot SQL Server

Enkele aandachtspunten bij het maken van een tabel

  • Tabel- en kolomnamen
  • Het datatype per kolom
  • Grootte of hoeveelheid data in de kolom
Introductie tot SQL Server

Datatypes

Datums:

  • date (YYYY-MM-DD), datetime (YYYY-MM-DD hh:mm:ss)
  • time

Numeriek:

  • integer, decimal, float
  • bit (1 = TRUE, 0 = FALSE. Accepteert ook NULL-waarden)

Strings:

  • char, varchar, nvarchar
Introductie tot SQL Server

Laten we wat tabellen maken!

Introductie tot SQL Server

Preparing Video For Download...