Bazat e të dhënave

INSERT, UPDATE, DELETE

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

Këto janë tri komandat e SQL-së për të ndryshuar të dhënat: INSERT shton rreshta të rinj, UPDATE ndryshon rreshta ekzistues dhe DELETE i fshin. Te UPDATE dhe DELETE mos harro WHERE — përndryshe ndryshon gjithë tabelën!

EnglishEN

These are SQL's three commands for changing data: INSERT adds new rows, UPDATE changes existing rows and DELETE removes them. With UPDATE and DELETE, never forget WHERE — otherwise you change the whole table!

Si ta mendosh

Si ditari i klasës: shton një nxënës të ri, ia ndryshon notën dikujt, ose e heq një që u transferua — por kujdes të mos e fshish gjithë faqen.

Lexoje në anglisht

Like the class register: you add a new student, change someone's grade, or remove one who transferred — but careful not to wipe the whole page.

Shembull kodisql

INSERT INTO nxenesit (emri, nota) VALUES ('Arta', 5);
UPDATE nxenesit SET nota = 4 WHERE emri = 'Dren';
DELETE FROM nxenesit WHERE emri = 'Ilir';

Terma të lidhur